Skip to content

Commit 973e4c3

Browse files
fix rhel again
1 parent fe65477 commit 973e4c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
if use_setuptools:
2626
try:
27-
from setuptools import setup
27+
from setuptools import Extension, setup
2828
from setuptools.command.install import install as _install
2929
from setuptools.command.build_ext import build_ext as _build_ext
3030
except ImportError:
@@ -36,7 +36,7 @@
3636
from distutils.command.build import build as _build
3737

3838
if not use_setuptools:
39-
from distutils.core import setup
39+
from distutils.core import Extension, setup
4040
from distutils.command.install import install as _install
4141
from distutils.command.build_ext import build_ext as _build_ext
4242
from distutils.command.build import build as _build
@@ -232,7 +232,8 @@ def finalize_options(self):
232232
url="https://github.com/symengine/symengine.py",
233233
python_requires='>=3.9,<4',
234234
zip_safe=False,
235-
packages=[],
235+
ext_modules=[Extension(name='symengine.lib', sources=[])],
236+
packages=['symengine', 'symengine.tests'],
236237
cmdclass = cmdclass,
237238
classifiers=[
238239
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)