I am trying to find a way to include a library in a Ubuntu/Python/PyGtk application even though It is not included in the stock python enviornment and I can’t add it as a dependency in my setup.py file. The library is called pygal and does have a PIP package (No available .deb or ppa) but I was looking for a way to include it in my application. I would think I could just include the source .py files to the library but I am unsure of how to go about including it in my code. Pygal also requires the lxml python library. I can install it via pip on my machine and it works fine but didn’t know if there was anyway to automate or include this in my .deb package’s setup.py file. Any help or advice would be greatly appreciated.
Share
I think this should work though I’m not sure.
You put the folder with the name
pygalfrom the pygal egg in your application directory. You can take it from your python installation – it should have this path:or if you use python 3.1
or download it from
pipy.You can use it like any python library: