Skip to content

Commit

Permalink
Fix setup.py to include python files in wheel (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschafhalter authored and ICGog committed Jan 18, 2020
1 parent 86e4c0b commit f7ecb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ __pycache__
/env
*.pyc
dist
/build

# Editor files
.vscode
Expand Down
3 changes: 2 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from setuptools import setup
from setuptools import setup, find_packages
from setuptools_rust import Binding, RustExtension

package_dir = os.path.dirname(__file__)
Expand All @@ -18,6 +18,7 @@
features=["python"],
binding=Binding.PyO3)
],
packages=find_packages("python"),
package_dir={"": package_dir},
# rust extensions are not zip safe, just like C-extensions.
zip_safe=False,
Expand Down

0 comments on commit f7ecb0a

Please sign in to comment.