Merge pull request #52 from rhyolight/disable-cython
Added --force-cython & --disable-cython options.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -32,6 +32,9 @@ nosetests.xml
|
|||||||
.project
|
.project
|
||||||
.pydevproject
|
.pydevproject
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
.idea/
|
||||||
|
|
||||||
# Cpp files
|
# Cpp files
|
||||||
capnp/*.cpp
|
capnp/*.cpp
|
||||||
|
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -35,6 +35,18 @@ Note: for OSX, if using clang from Xcode 5, you will need to set `CFLAGS` like s
|
|||||||
|
|
||||||
CFLAGS='-stdlib=libc++' pip install pycapnp
|
CFLAGS='-stdlib=libc++' pip install pycapnp
|
||||||
|
|
||||||
|
### Binary Packages
|
||||||
|
|
||||||
|
In order to build binary packages from this source code, you must specify the `--disable-cython` option:
|
||||||
|
|
||||||
|
Building a dumb binary distribution:
|
||||||
|
|
||||||
|
python setup.py bdist_dumb --disable-cython
|
||||||
|
|
||||||
|
Building a Python wheel distributiion:
|
||||||
|
|
||||||
|
python setup.py bdist_wheel --disable-cython
|
||||||
|
|
||||||
## Python Versions
|
## Python Versions
|
||||||
|
|
||||||
Python 2.6/2.7 are supported as well as Python 3.2+. PyPy 2.1+ is also supported.
|
Python 2.6/2.7 are supported as well as Python 3.2+. PyPy 2.1+ is also supported.
|
||||||
|
|||||||
8
setup.py
8
setup.py
@@ -85,6 +85,14 @@ if force_bundled_libcapnp:
|
|||||||
force_system_libcapnp = "--force-system-libcapnp" in sys.argv
|
force_system_libcapnp = "--force-system-libcapnp" in sys.argv
|
||||||
if force_system_libcapnp:
|
if force_system_libcapnp:
|
||||||
sys.argv.remove("--force-system-libcapnp")
|
sys.argv.remove("--force-system-libcapnp")
|
||||||
|
disable_cython = "--disable-cython" in sys.argv
|
||||||
|
if disable_cython:
|
||||||
|
sys.argv.remove("--disable-cython")
|
||||||
|
use_cython = False
|
||||||
|
force_cython = "--force-cython" in sys.argv
|
||||||
|
if force_cython:
|
||||||
|
sys.argv.remove("--force-cython")
|
||||||
|
use_cython = True
|
||||||
|
|
||||||
|
|
||||||
class build_libcapnp_ext(build_ext_c):
|
class build_libcapnp_ext(build_ext_c):
|
||||||
|
|||||||
Reference in New Issue
Block a user