INNER CODE UNIT · Python
InstallCMakeScripts
andrewssobral/bgslibrary · setup.py:119
class InstallCMakeScripts(install_scripts, object):
"""
Install the scripts in the build dir
"""
def run(self):
"""
Copy the required directory to the build directory and super().run()
"""
self.announce("Moving scripts files", level=3)
# Scripts were already built in a previous step
self.skip_build = True
bin_dir = self.distribution.bin_dir
scripts_dirs = [os.path.join(bin_dir, _dir) for _dir in
os.listdir(bin_dir) if
os.path.isdir(os.path.join(bin_dir, _dir))]
for scripts_dir in scripts_dirs:
shutil.move(scripts_dir, os.path.join(self.build_dir, os.path.basename(scripts_dir)))
# Mark the scripts for installation, adding them to