Skip to content

Commit 0341a1f

Browse files
Build as a platlib
1 parent a0e8876 commit 0341a1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: setup.py

+5-2
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:
@@ -232,7 +232,10 @@ def finalize_options(self):
232232
url="https://github.com/symengine/symengine.py",
233233
python_requires='>=3.9,<4',
234234
zip_safe=False,
235-
packages=['symengine', 'symengine.lib', 'symengine.tests'],
235+
ext_modules=[
236+
Extension(name='symengine.lib', sources=[]),
237+
Extension(name='symengine.tests', sources=[])],
238+
packages=['symengine'],
236239
cmdclass = cmdclass,
237240
classifiers=[
238241
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)