Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #16 OS X numpy cuthon issue #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions compileRLE.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
# "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
# python compileRLE.py build_ext --inplace

from distutils.core import setup
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

from distutils.core import setup, Extension
from Cython.Build import cythonize
import numpy


setup(
name="Fast 1-bit RLE encoding of 1440x2560x8 images.",
ext_modules=cythonize("rleEncode.pyx"),
include_dirs=[numpy.get_include()]
ext_modules=[
Extension("rleEncode", ["rleEncode.c"],
include_dirs=[numpy.get_include()]),
],
)
12 changes: 8 additions & 4 deletions compileTIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
# "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
# python compileTIS.py build_ext --inplace

from distutils.core import setup
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

from distutils.core import setup, Extension
from Cython.Build import cythonize
import numpy


setup(
name="Fast check if tri between two heights (in slice).",
ext_modules=cythonize("triInSlice.pyx"),
include_dirs=[numpy.get_include()]
ext_modules=[
Extension("triInSlice", ["triInSlice.c"],
include_dirs=[numpy.get_include()]),
],
)