Skip to content

Cleaning up stale installed files in setup() #21604

@jdemeyer

Description

@jdemeyer

This part of src/setup.py should be moved inside some distutils command:

#########################################################
### Clean
#########################################################

print('Cleaning up stale installed files....')
t = time.time()
from sage_setup.clean import clean_install_dir
output_dirs = SITE_PACKAGES + glob.glob(os.path.join(SAGE_SRC, 'build', 'lib*'))
for output_dir in output_dirs:
    print('- cleaning {0}'.format(output_dir))
    clean_install_dir(output_dir, python_packages, python_modules,
            ext_modules, python_data_files)
print('Finished cleaning, time: %.2f seconds.' % (time.time() - t))

Depends on #21480

CC: @mkoeppe

Component: build

Author: Jeroen Demeyer

Branch/Commit: 5ba95ed

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/21604

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions