Comments (6)
Hmm, I get the extensions built when installing BTrees
using pip
:
$ /opt/Python-2.7.9/bin/virtualenv /tmp/btrees_10
New python executable in /tmp/btrees_10/bin/python
Installing setuptools, pip...done.
$ /tmp/btrees_10/bin/pip install BTrees
Collecting BTrees
Using cached BTrees-4.1.1.tar.gz
Installed /tmp/pip-build-STq3LO/BTrees/.eggs/persistent-4.0.8-py2.7-linux-x86_64.egg
Searching for zope.interface
Reading https://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.1.2
Downloading https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.2.tar.gz#md5=04298faeaa70b4f3b23fa2ae8987262c
Processing zope.interface-4.1.2.tar.gz
Writing /tmp/easy_install-GHj5Wq/zope.interface-4.1.2/setup.cfg
Running zope.interface-4.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GHj5Wq/zope.interface-4.1.2/egg-dist-tmp-pBiowq
Extracting zope.interface-4.1.2-py2.7-linux-x86_64.egg to /tmp/pip-build-STq3LO/BTrees/.eggs
Installed /tmp/pip-build-STq3LO/BTrees/.eggs/zope.interface-4.1.2-py2.7-linux-x86_64.egg
Collecting persistent (from BTrees)
Using cached persistent-4.0.8.tar.gz
Collecting zope.interface (from BTrees)
Using cached zope.interface-4.1.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in /tmp/btrees_10/lib/python2.7/site-packages (from zope.interface->BTrees)
Installing collected packages: zope.interface, persistent, BTrees
Running setup.py install for zope.interface
building 'zope.interface._zope_interface_coptimizations' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c src/zope/interface/_zope_interface_coptimizations.c -o build/temp.linux-x86_64-2.7/src/zope/interface/_zope_interface_coptimizations.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/src/zope/interface/_zope_interface_coptimizations.o -o build/lib.linux-x86_64-2.7/zope/interface/_zope_interface_coptimizations.so
Skipping installation of /tmp/btrees_10/lib/python2.7/site-packages/zope/__init__.py (namespace package)
Installing /tmp/btrees_10/lib/python2.7/site-packages/zope.interface-4.1.2-py2.7-nspkg.pth
Running setup.py install for persistent
building 'persistent.cPersistence' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c persistent/cPersistence.c -o build/temp.linux-x86_64-2.7/persistent/cPersistence.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c persistent/ring.c -o build/temp.linux-x86_64-2.7/persistent/ring.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/persistent/cPersistence.o build/temp.linux-x86_64-2.7/persistent/ring.o -o build/lib.linux-x86_64-2.7/persistent/cPersistence.so
building 'persistent.cPickleCache' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c persistent/cPickleCache.c -o build/temp.linux-x86_64-2.7/persistent/cPickleCache.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c persistent/ring.c -o build/temp.linux-x86_64-2.7/persistent/ring.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/persistent/cPickleCache.o build/temp.linux-x86_64-2.7/persistent/ring.o -o build/lib.linux-x86_64-2.7/persistent/cPickleCache.so
building 'persistent._timestamp' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/Python-2.7.9/include/python2.7 -c persistent/_timestamp.c -o build/temp.linux-x86_64-2.7/persistent/_timestamp.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/persistent/_timestamp.o -o build/lib.linux-x86_64-2.7/persistent/_timestamp.so
Running setup.py install for BTrees
building 'BTrees._OOBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_OOBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_OOBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_OOBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_OOBTree.so
building 'BTrees._IOBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_IOBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_IOBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_IOBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_IOBTree.so
building 'BTrees._OIBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_OIBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_OIBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_OIBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_OIBTree.so
building 'BTrees._IIBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_IIBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_IIBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_IIBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_IIBTree.so
building 'BTrees._IFBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_IFBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_IFBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_IFBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_IFBTree.so
building 'BTrees._fsBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_fsBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_fsBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_fsBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_fsBTree.so
building 'BTrees._LOBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_LOBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_LOBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_LOBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_LOBTree.so
building 'BTrees._OLBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_OLBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_OLBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_OLBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_OLBTree.so
building 'BTrees._LLBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_LLBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_LLBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_LLBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_LLBTree.so
building 'BTrees._LFBTree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -I/tmp/btrees_10/lib/python2.7/site-packages -I/opt/Python-2.7.9/include/python2.7 -c BTrees/_LFBTree.c -o build/temp.linux-x86_64-2.7/BTrees/_LFBTree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/BTrees/_LFBTree.o -o build/lib.linux-x86_64-2.7/BTrees/_LFBTree.so
Successfully installed BTrees-4.1.1 persistent-4.0.8 zope.interface-4.1.2
$ /tmp/btrees_10/bin/python
Python 2.7.9 (default, Dec 16 2014, 16:59:02)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from BTrees import OOBTree
>>> OOBTree.union.__module__
'BTrees._OOBTree'
That is the extension module. Can you provide the scenario where you needed to supply PURE_PYTHON
?
from btrees.
Yes, I forgot to mention that it works under pip. Not buildout, though. I'm
a little frightened to determine why.
from btrees.
OK, here is my minimal buildout.cfg:
[buildout]
parts = hmmmm
[hmmmm]
recipe = zc.recipe.egg
eggs =
BTrees
interpreter = py
And I build it so:
$ wget https://bootstrap.pypa.io/bootstrap-buildout.py
--2015-01-19 00:21:37-- https://bootstrap.pypa.io/bootstrap-buildout.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 199.27.76.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|199.27.76.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6501 (6.3K) [text/x-python]
Saving to: `bootstrap-buildout.py'
100%[======================================>] 6,501 --.-K/s in 0.003s
2015-01-19 00:21:37 (1.85 MB/s) - `bootstrap-buildout.py' saved [6501/6501]
$ /opt/Python-2.7.9/bin/python bootstrap-buildout.py && bin/buildout
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.zip
Extracting in /tmp/tmpm5Ij3J
Now working in /tmp/tmpm5Ij3J/setuptools-12.0.3
Building a Setuptools egg in /tmp/tmpdd5dlZ
/tmp/tmpdd5dlZ/setuptools-12.0.3-py2.7.egg
Creating directory '/tmp/foo/bin'.
Creating directory '/tmp/foo/parts'.
Creating directory '/tmp/foo/eggs'.
Creating directory '/tmp/foo/develop-eggs'.
Generated script '/tmp/foo/bin/buildout'.
Getting distribution for 'zc.recipe.egg>=2.0.0a3'.
Got zc.recipe.egg 2.0.1.
Installing hmmmm.
Getting distribution for 'BTrees'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Installed /tmp/easy_install-EJfCCa/BTrees-4.1.1/.eggs/persistent-4.0.8-py2.7-linux-x86_64.egg
Searching for zope.interface
Reading https://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.1.2
Downloading https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.2.tar.gz#md5=04298faeaa70b4f3b23fa2ae8987262c
Processing zope.interface-4.1.2.tar.gz
Writing /tmp/easy_install-EJfCCa/BTrees-4.1.1/temp/easy_install-uD_VDb/zope.interface-4.1.2/setup.cfg
Running zope.interface-4.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-EJfCCa/BTrees-4.1.1/temp/easy_install-uD_VDb/zope.interface-4.1.2/egg-dist-tmp-XTN4bK
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Installed /tmp/easy_install-EJfCCa/BTrees-4.1.1/.eggs/zope.interface-4.1.2-py2.7-linux-x86_64.egg
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Got BTrees 4.1.1.
Getting distribution for 'zope.interface'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got zope.interface 4.1.2.
Getting distribution for 'persistent'.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got persistent 4.0.8.
Generated interpreter '/tmp/foo/bin/py'.
and to check:
$ bin/py
>>> from BTrees.OOBTree import union
>>> union
<built-in function union>
>>> union.__module__
'BTrees._OOBTree'
The extension is built and used.
from btrees.
How odd. Thanks for testing it out, I'll try to figure out what else is at play in my buildout environment.
from btrees.
Output of a failing build could be useful in determining what happens. Presumably you could provide it, since you have a way to reproduce.
from btrees.
I'm going to close this now because, for whatever reason, the extensions are building properly again. Sorry for the trouble!
from btrees.
Related Issues (20)
- Python 2: OxBTrees allow types as keys; Python 3 does not
- Can we move to the src/ layout? HOT 3
- Support PURE_PYTHON=0 to require C extensions
- BTree.get() swallows POSKeyError on internal corruption (C only) HOT 2
- Python/C Inconsistency: Detecting classes that just implement `__eq__`
- Python/C Inconsistency: Getting/Setting max_internal_size on the BTree class
- Regression in 4.9: Subclasses can't use @adapter
- fsBTree and fsTreeSet broken in 4.9.0/4.9.1
- fsBTree.difference fails when the second argument is a set HOT 2
- Zope5.2.1 install warnings HOT 3
- Convert to meta/config HOT 2
- Consider using cibuldwheel for building binary wheels. HOT 1
- 4.10.0: sphinx warnings `reference target not found` HOT 3
- 4.10.0: pytest is failing in some units HOT 6
- btrees not installing on m1 computer HOT 2
- Get a random element from a BTree HOT 2
- 'IFBucket' object has no attribute 'byValue' when running with PURE_PYTHON HOT 1
- Length Object not working from outside tree class HOT 4
- 5.2: pytest fails in 24 units with pytest 8.2.1 (mostly with `AssertionError: TypeError not raised`) HOT 9
- Move global statics to module state
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrees.