1. Christopher Lee-Messer
  2. numpy-sharedmem
  3. Issues
Issue #4 resolved

shmarray module not included in install

Anonymous created an issue

I suppose the shmarray module in the source is actually intended to be installed during {{{ python setup.py install }}} but it doesn't happen with the current hg tip: {{{ 0|~/build/numpy-sharedmem > ll ~/.local/ total 4 drwxr-xr-x 14 jonas jonas 4096 Feb 17 12:56 share 0|~/build/numpy-sharedmem > python setup.py install --user sys.platform: linux2 running install running build running build_py creating build creating build/lib.linux-x86_64-2.6 creating build/lib.linux-x86_64-2.6/sharedmem copying sharedmem/heap.py -> build/lib.linux-x86_64-2.6/sharedmem copying sharedmem/devsetup.py -> build/lib.linux-x86_64-2.6/sharedmem copying sharedmem/heap_old.py -> build/lib.linux-x86_64-2.6/sharedmem copying sharedmem/array.py -> build/lib.linux-x86_64-2.6/sharedmem copying sharedmem/init.py -> build/lib.linux-x86_64-2.6/sharedmem running build_ext skipping 'sharedmem/sharedmemory_sysv.c' Cython extension (up-to-date) building 'sharedmem.sharedmemory_sysv' extension creating build/temp.linux-x86_64-2.6 creating build/temp.linux-x86_64-2.6/sharedmem gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/pymodules/python2.6/numpy/core/include -I/usr/include/python2.6 -c sharedmem/sharedmemory_sysv.c -o build/temp.linux-x86_64-2.6/sharedmem/sharedmemory_sysv.o gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/sharedmem/sharedmemory_sysv.o -L/usr/local/lib -L. -lm -o build/lib.linux-x86_64-2.6/sharedmem/sharedmemory_sysv.so running install_lib creating /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/heap.py -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/devsetup.py -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/sharedmemory_sysv.so -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/heap_old.py -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/array.py -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem copying build/lib.linux-x86_64-2.6/sharedmem/init.py -> /home/jonas/.local/lib/python2.6/site-packages/sharedmem byte-compiling /home/jonas/.local/lib/python2.6/site-packages/sharedmem/heap.py to heap.pyc byte-compiling /home/jonas/.local/lib/python2.6/site-packages/sharedmem/devsetup.py to devsetup.pyc byte-compiling /home/jonas/.local/lib/python2.6/site-packages/sharedmem/heap_old.py to heap_old.pyc byte-compiling /home/jonas/.local/lib/python2.6/site-packages/sharedmem/array.py to array.pyc byte-compiling /home/jonas/.local/lib/python2.6/site-packages/sharedmem/init.py to init.pyc running install_egg_info Writing /home/jonas/.local/lib/python2.6/site-packages/numpy_sharedmem-2009_03_15.egg-info 0|~/build/numpy-sharedmem > ll ~/.local/lib/python2.6/site-packages/ total 8 -rw-r--r-- 1 jonas jonas 597 Feb 17 13:00 numpy_sharedmem-2009_03_15.egg-info drwxr-xr-x 2 jonas jonas 4096 Feb 17 13:00 sharedmem 0|~/build/numpy-sharedmem >
}}}

When I add a py_modules line like in the following diff it gets correctly included: {{{ 0|~/build > diff -Naur numpy-sharedmem*/setup.py --- numpy-sharedmem-hg17022012/setup.py 2012-02-17 13:09:13.007391042 +0100 +++ numpy-sharedmem/setup.py 2012-02-17 11:41:44.000000000 +0100 @@ -62,6 +62,7 @@ # zip_safe=False, # because of ext module cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules, + py_modules=['shmarray'],

) }}}

Cheers, Jonas


jonas DOT bardino AT gmail DOT com

Comments (1)

  1. Christopher Lee-Messer repo owner

    done. As mentioned in the README I am only using this in developer mode. I am not testing with python setup.py install but I'm happy to add that small change. At some point I need to sit down with the distutil's doc and figure out again how to properly package everything including the extensions that are built on different platforms

  2. Log in to comment