Red Hat Bugzilla – Bug 1023775
Missing header files
Last modified: 2013-10-28 17:14:49 EDT
Description of problem:
When attempting to use setup.py, I run into an error stating "unable to locate include directory containing header files 'nss.h', 'pk11pub.h'" and these files are not in the package. Based on what I have seen in the code, I believe the documentation for this package should be updated with where to obtain the necessary include files so that this can be setup appropriately.
Version-Release number of selected component (if applicable):
Easily reproducible in Windows based setups.
Steps to Reproduce:
1.run setup.py in package
Error is given that I have listed.
python-nss should be setup and ready to use with Python installation.
The PiPy documentation for python-nss states it's dependent upon NSS and NSPR. python-nss is a CPython module (i.e. it's written in C code, not Python). To build you'll need the C development headers and libraries for NSS and NSPR (by the way links for those dependencies are in the PyPi documentation). I don't know how to specify how to obtain those dependencies for every possible system you might try to build on. PyPi is not really setup to handle these types of issues.
If you're on a Linux system you probably need the nss-devel nspr-devel packages installed using your system package manager. But different distributions handle this differently, so this is just general advise.
When it comes to windows, I'm afraid I can't help you further. python-nss is an open source project and we welcome contributions. If you figure how to build it on windows then please contribute your work to the project and it will be included in a subsequent release.
I will update the PiPy documentation to give an indication of what you might need to do.
Also, I noticed the version on PiPy is out of date, the current version is 0.14.1. I will update PiPy shortly.
python-nss was updated on PyPI to version 0.14.1. The description has some verbage on installing pre-requisite packages.
Please note the Platform is Posix (no change, it's always been Posix). If you would like to contribute Win32 Platform support that would be wonderful and appreciated.