Thank you very much for your answer, and sorry for such a long delay in answering.
In the end I am trying to build a binary package using pyinstaller, because I need to reach a broad audience if possible.
Do you have any suggestions about building binaries using igraph? I need to prepare at least some packages for Linux and Mac systems.
I can successfully build my script using pyinstaller, but then when I run the executable it complains that can't find the '_igraph' module.
$: ./dist/vcf2network
Traceback (most recent call last):
File "<string>", line 8, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "/home/gioby/workspace/vcf2networks/build/vcf2network/out00-PYZ.pyz/binary_to_network", line 11, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "/home/gioby/workspace/vcf2networks/build/vcf2network/out00-PYZ.pyz/GenotypeNetwork", line 9, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "/home/gioby/workspace/vcf2networks/build/vcf2network/out00-PYZ.pyz/igraph", line 34, in <module>
ImportError: No module named _igraph
I suspect that it doesn't find the igraph C headers, but I am not sure how I can tell him where to find them.