Re: Swig problem for python3 setup.py build
bitdiver <[email protected]> Sun, 13 Dec 2020 10:15:20 +0100
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <trinity-f4fef515-3252-4ff9-942c-633ecd824722-1607850920606@3c-app-gmx-bap37> |
Gesendet: Freitag, 11. Dezember 2020 um 09:49 Uhr Von: [email protected] An: [email protected] Betreff: Re: [Swig-user] Swig problem for python3 setup.py build On 10/12/20 22:18, bitdiver wrote: >> In file included from src/geometry.hh:8:0, >> from src/swig/geometry_wrap.cpp:3133: >> /usr/local/include/pngwriter.h:66:10: fatal error: ft2build.h: No such >> file or directory >> #include <ft2build.h> > ft2build.h belongs to freetype library, which seems to be another > dependency, Thanks indeed, the include and library paths were incomplete in the setup.py The build is working, but now there is a problem on the Python module side. I thought I could structure the swig/py nodule part in a directory swig as follows: local) pmu@linux-lykr:~/projects/graphics/geometrics> tree src src ├── CMakeLists.txt ├── geometry.cc ├── geometry.hh ├── main.cc └── swig ├── geomod.i ├── geomod.py ├── geomod_wrap.cpp └── __init__.py 1 directory, 8 files However, now the resulting package has the "swig" namespace copying src/swig/geomod.py -> build/lib.linux-x86_64-3.6/src/swig running build_ext running install_lib copying build/lib.linux-x86_64-3.6/src/swig/geomod.py -> /home/pmu/projects/graphics/geometrics/local/lib64/python3.6/site-packages/src/swig byte-compiling /home/pmu/projects/graphics/geometrics/local/lib64/python3.6/site-packages/src/swig/geomod.py to geomod.cpython-36.pyc running install_egg_info Removing /home/pmu/projects/graphics/geometrics/local/lib64/python3.6/site-packages/geomod-1.0-py3.6.egg-info Writing /home/pmu/projects/graphics/geometrics/local/lib64/python3.6/site-packages/geomod-1.0-py3.6.egg-info I guess I can rename the " swig" folder to "geomod" - but just wondering if there is syntax in Swig/setup.py that allows to keep the current src tree layout. Thanks again for your help! _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user