Skip to content

Commit b437364

Browse files
pack mixin.dll in wheel
1 parent 6f3d02d commit b437364

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import platform
44
from setuptools import find_packages
55
from skbuild import setup
6-
6+
77
# Require pytest-runner only when running tests
88
pytest_runner = (['pytest-runner>=2.0,<3dev']
99
if any(arg in sys.argv for arg in ('pytest', 'test'))
@@ -15,6 +15,10 @@
1515
# ('lib',['src/mixin/mixin.so']),
1616
]
1717

18+
data = []
19+
if platform.system() == 'Windows':
20+
data.append("mixin.dll")
21+
1822
version = platform.python_version_tuple()
1923
version = '%s.%s' % (version[0], version[1])
2024

@@ -27,7 +31,7 @@
2731
license="GPL-3.0",
2832
packages=['pymixin'],
2933
package_dir={'pymixin': 'pysrc'},
30-
package_data={'pymixin': []},
34+
package_data={'pymixin': data},
3135
data_files = data_files,
3236
scripts=[],
3337
install_requires=[

0 commit comments

Comments
 (0)