Bug 1023775

Summary: Missing header files
Product: [Fedora] Fedora Reporter: David Caudill <caudilldk>
Component: python-nssAssignee: John Dennis <jdennis>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jdennis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-nss-0.14.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-28 21:14:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Caudill 2013-10-27 19:11:20 UTC
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):
20

How reproducible:
Easily reproducible in Windows based setups.

Steps to Reproduce:
1.run setup.py in package
2.
3.

Actual results:
Error is given that I have listed.

Expected results:
python-nss should be setup and ready to use with Python installation.

Additional info:

Comment 1 John Dennis 2013-10-28 16:30:51 UTC
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.

Comment 2 John Dennis 2013-10-28 21:14:49 UTC
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.