def get_cythonized_package_files(self): """ Return a list of files found in the Sage sources and/or Cythonize output directory that should be installed with Python packages (a la ``package_files``). """ if self.cythonized_files is not None: return self.cythonized_files self.cythonized_files = list( find_extra_files(".", ["sage"], self.build_dir, []).items()) return self.cythonized_files
def get_cythonized_package_files(self): """ Return a list of files found in the Sage sources and/or Cythonize output directory that should be installed with Python packages (a la ``package_files``). """ if self.cythonized_files is not None: return self.cythonized_files self.cythonized_files = list(find_extra_files( ".", ["sage"], self.build_dir, ["ntlwrap.cpp"]).items()) return self.cythonized_files
def get_cythonized_package_files(self): """ Return a list of files found in the Sage sources and/or Cythonize output directory that should be installed with Python packages (a la ``package_files``). """ if self.cythonized_files is not None: return self.cythonized_files dist = self.distribution self.cythonized_files = find_extra_files(dist.packages, ".", SAGE_CYTHONIZED, ["ntlwrap.cpp"]) return self.cythonized_files
def get_cythonized_package_files(self): """ Return a list of files found in the Sage sources and/or Cythonize output directory that should be installed with Python packages (a la ``package_files``). """ if self.cythonized_files is not None: return self.cythonized_files dist = self.distribution self.cythonized_files = find_extra_files(dist.packages, ".", self.build_dir, ["ntlwrap.cpp"]) return self.cythonized_files
print("Updating Cython code....") t = time.time() run_cythonize() print("Finished Cythonizing, time: %.2f seconds." % (time.time() - t)) ######################################################### ### Discovering Sources ######################################################### print("Discovering Python/Cython source code....") t = time.time() from sage_setup.find import find_python_sources, find_extra_files python_packages, python_modules = find_python_sources(SAGE_SRC, ['sage', 'sage_setup']) python_data_files = find_extra_files(python_packages, ".", SAGE_CYTHONIZED, SAGE_LIB, ["ntlwrap.cpp"]) print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t)) ######################################################### ### 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,
print("Updating Cython code....") t = time.time() run_cythonize() print("Finished Cythonizing, time: %.2f seconds." % (time.time() - t)) ######################################################### ### Discovering Sources ######################################################### print("Discovering Python/Cython source code....") t = time.time() from sage_setup.find import find_python_sources, find_extra_files python_packages, python_modules = find_python_sources( SAGE_SRC, ['sage', 'sage_setup']) python_data_files = find_extra_files(python_packages, ".", SAGE_CYTHONIZED, SAGE_LIB, ["ntlwrap.cpp"]) print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t)) ######################################################### ### 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)