|
24 | 24 |
|
25 | 25 | if use_setuptools:
|
26 | 26 | try:
|
27 |
| - from setuptools import Extension, setup |
| 27 | + from setuptools import setup |
28 | 28 | from setuptools.command.install import install as _install
|
29 | 29 | from setuptools.command.build_ext import build_ext as _build_ext
|
30 | 30 | except ImportError:
|
|
36 | 36 | from distutils.command.build import build as _build
|
37 | 37 |
|
38 | 38 | if not use_setuptools:
|
39 |
| - from distutils.core import Extension, setup |
| 39 | + from distutils.core import setup |
40 | 40 | from distutils.command.install import install as _install
|
41 | 41 | from distutils.command.build_ext import build_ext as _build_ext
|
42 | 42 | from distutils.command.build import build as _build
|
43 | 43 |
|
44 | 44 | cmake_opts = [("PYTHON_BIN", sys.executable),
|
45 |
| - ("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes"), |
46 |
| - ("CMAKE_POLICY_VERSION_MINIMUM", "3.5")] |
| 45 | + ("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")] |
47 | 46 | cmake_generator = [None]
|
48 | 47 | cmake_build_type = ["Release"]
|
49 | 48 |
|
@@ -118,7 +117,7 @@ def cmake_build(self):
|
118 | 117 |
|
119 | 118 | cmake_cmd = ["cmake", source_dir,
|
120 | 119 | "-DCMAKE_BUILD_TYPE=" + cmake_build_type[0],
|
121 |
| - "-DSYMENGINE_INSTALL_PY_FILES=OFF", |
| 120 | + "-DSYMENGINE_INSTALL_PY_FILES=ON", |
122 | 121 | ]
|
123 | 122 | cmake_cmd.extend(process_opts(cmake_opts))
|
124 | 123 | if not path.exists(path.join(build_dir, "CMakeCache.txt")):
|
@@ -233,8 +232,7 @@ def finalize_options(self):
|
233 | 232 | url="https://github.com/symengine/symengine.py",
|
234 | 233 | python_requires='>=3.9,<4',
|
235 | 234 | zip_safe=False,
|
236 |
| - ext_modules=[Extension(name='symengine.lib', sources=[])], |
237 |
| - packages=['symengine', 'symengine.tests'], |
| 235 | + packages=[], |
238 | 236 | cmdclass = cmdclass,
|
239 | 237 | classifiers=[
|
240 | 238 | 'License :: OSI Approved :: MIT License',
|
|
0 commit comments