Skip to content

Commit

Permalink
Update setup.py to enable wheel creation (#231)
Browse files Browse the repository at this point in the history
* Enable wheel creation

* Update gitignore

* Update langauge level

* wildcard egginfo

* sort imports

Co-authored-by: Yousuf Fauzan <[email protected]>
  • Loading branch information
spicavigo and Yousuf Fauzan authored Mar 6, 2021
1 parent 28d91f9 commit 2095bcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
*.pyc
\#*#
build/
dist/
*.egg-info/
*.so
*_cythonized.c
.cache/
Expand Down
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
from distutils.core import setup
from Cython.Build import cythonize
import os.path
import setuptools # type: ignore

from Cython.Build import cythonize

os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src'))

setup(ext_modules=cythonize("pyfu/_all_cythonized.pyx"), requires=['Cython', 'numpy'])
setuptools.setup(
name="pyfu",
version="0.0.1",
packages=setuptools.find_packages(),
ext_modules=cythonize("pyfu/_all_cythonized.pyx", compiler_directives={'language_level': 3}),
requires=['Cython', 'numpy'],
)

0 comments on commit 2095bcd

Please sign in to comment.