c++ - Complex python packaging with extension -
i'm symplifying packaging process.
i have large open source library in c++ designed installed in system, want installed locally in python virtualenv this
cd /path/to/mycpplibrary sh ./autogen.sh ./configure –prefix=/home/user/virtualenvs/myvirtualenv (absolute path needed here) make make install
theses commands compile , send .so file folder /home/user/virtualenvs/myvirtualenv
now have swig package uses library. these commands generate wrapped.cpp file
cd /path/to/swig-package workon myvirtualenv python setup.py wrap
and it's time compile links .so file created previously
ld_run_path=/home/user/virtualenvs/myvirtualenv/lib/ python setup.py build python setup.py install
i need specify ld_run_path=/home/user/virtualenvs/myvirtualenv/lib/
build process find .so file.
this installation process seems complex. don't think putting command line .sh file solution. how can package swig-package contains library.so
file , wrapped.so
file in 1 egg or wheel ? thanks
Comments
Post a Comment