| 
69 | 69 |     from sage_setup.autogen import autogen_all  | 
70 | 70 |     autogen_all()  | 
71 | 71 | 
 
  | 
72 |  | -    # TODO: This should be quiet by default  | 
73 |  | -    print("Discovering Python/Cython source code....")  | 
74 |  | -    t = time.time()  | 
75 |  | -    from sage.misc.package import is_package_installed_and_updated  | 
76 |  | - | 
77 |  | -    distributions = [  | 
78 |  | -        '',  | 
79 |  | -        "sagemath-brial",  | 
80 |  | -        "sagemath-categories",  | 
81 |  | -        "sagemath-combinat",  | 
82 |  | -        "sagemath-eclib",  | 
83 |  | -        "sagemath-environment",  | 
84 |  | -        "sagemath-flint",  | 
85 |  | -        "sagemath-gap",  | 
86 |  | -        "sagemath-giac",  | 
87 |  | -        "sagemath-glpk",  | 
88 |  | -        "sagemath-graphs",  | 
89 |  | -        "sagemath-groups",  | 
90 |  | -        "sagemath-homfly",  | 
91 |  | -        "sagemath-lcalc",  | 
92 |  | -        "sagemath-libbraiding",  | 
93 |  | -        "sagemath-libecm",  | 
94 |  | -        "sagemath-linbox",  | 
95 |  | -        "sagemath-modules",  | 
96 |  | -        "sagemath-mpmath",  | 
97 |  | -        "sagemath-ntl",  | 
98 |  | -        "sagemath-objects",  | 
99 |  | -        "sagemath-pari",  | 
100 |  | -        "sagemath-plot",  | 
101 |  | -        "sagemath-polyhedra",  | 
102 |  | -        "sagemath-repl",  | 
103 |  | -        "sagemath-schemes",  | 
104 |  | -        "sagemath-singular",  | 
105 |  | -        "sagemath-symbolics",  | 
106 |  | -    ]  | 
107 |  | - | 
108 |  | -    optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',')  | 
109 |  | -    distributions += ['sagemath-{}'.format(pkg)  | 
110 |  | -                      for pkg in optional_packages_with_extensions  | 
111 |  | -                      if is_package_installed_and_updated(pkg)]  | 
112 |  | -    log.warn('distributions = {0}'.format(distributions))  | 
113 |  | -    from sage_setup.find import find_python_sources  | 
114 |  | -    python_packages, python_modules, cython_modules = find_python_sources(  | 
115 |  | -        SAGE_SRC, ['sage'], distributions=distributions)  | 
116 |  | - | 
117 |  | -    log.debug('python_packages = {0}'.format(python_packages))  | 
118 |  | -    log.debug('python_modules = {0}'.format(python_modules))  | 
119 |  | -    log.debug('cython_modules = {0}'.format(cython_modules))  | 
120 |  | - | 
121 |  | -    print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t))  | 
122 |  | -else:  | 
123 |  | -    # sdist, egg_info, dist_info  | 
124 |  | -    python_packages = []  | 
125 |  | -    cython_modules = []  | 
 | 72 | +# TODO: This should be quiet by default  | 
 | 73 | +print("Discovering Python/Cython source code....")  | 
 | 74 | +t = time.time()  | 
 | 75 | +from sage.misc.package import is_package_installed_and_updated  | 
 | 76 | +distributions = ['']  | 
 | 77 | +optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',')  | 
 | 78 | +distributions += ['sagemath-{}'.format(pkg)  | 
 | 79 | +                  for pkg in optional_packages_with_extensions  | 
 | 80 | +                  if is_package_installed_and_updated(pkg)]  | 
 | 81 | +log.warn('distributions = {0}'.format(distributions))  | 
 | 82 | +from sage_setup.find import find_python_sources  | 
 | 83 | +python_packages, python_modules, cython_modules = find_python_sources(  | 
 | 84 | +    SAGE_SRC, ['sage'], distributions=distributions)  | 
 | 85 | + | 
 | 86 | +log.debug('python_packages = {0}'.format(python_packages))  | 
 | 87 | +log.debug('python_modules = {0}'.format(python_modules))  | 
 | 88 | +log.debug('cython_modules = {0}'.format(cython_modules))  | 
 | 89 | + | 
 | 90 | +print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t))  | 
126 | 91 | 
 
  | 
127 | 92 | #########################################################  | 
128 | 93 | ### Distutils  | 
 | 
0 commit comments