Closed Bug 700347 Opened 13 years ago Closed 13 years ago

install python 'ssl' module on Windows

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: rail)

References

()

Details

Attachments

(1 file)

We need this to do signing as part of the build process.
I managed to get some form of ssl library built after installing gnuwin32 and mingw. I had to override C_INCLUDE_PATH to point at the msys include dir, and C_LIB_PATH to point at the gnuwin32 lib dir. I'll try to document this better after verifying that it works...
No longer blocks: 509158
Blocks: 509158
Looks like this module is working fine. So, after installing all of gnuwin32 and mingw I did the following;
export C_INCLUDE_PATH=/d/gnuwin32/include
export C_LIB_PATH=/d/mozilla-build/msys/lib
python setup.py build -cmingw32

That gave me ssl-1.15.win32.zip in dist/. Unpacking that gives me the ssl module with a bunch of leading directories. To fix, did the following:
unzip ssl-1.15.win32.zip
cd mozilla-build/python25/lib/site-packages
cp -R ssl /d/mozilla-build/python25/lib/site-packages

I couldn't make it work as a packaged egg, but that might just require some fiddling.
Attached patch OPSI packageSplinter Review
Tested in staging.

Diff agains Ben's version:

--- a/python-ssl/CLIENT_DATA/ssl.ins
+++ b/python-ssl/CLIENT_DATA/ssl.ins
@@ -4,9 +4,9 @@ StayOnTop=false
 
 [Aktionen]
 DefVar $SITE_PACKAGES$
-Set $SITE_PACKAGES$ = "d:\\mozilla-build\\python25\\lib\\site-packages"
+Set $SITE_PACKAGES$ = "d:\mozilla-build\python25\lib\site-packages"
 Files_copy_files
 
 [Files_copy_files]
-copy -s %SCRIPTPATH%\ssl $SITE_PACKAGES$\ssl
-copy %SCRIPTPATH%\ssl-1.15-py2.5.egg-info $SITE_PACKAGES$
+copy -s %SCRIPTPATH%\ssl\*.* $SITE_PACKAGES$\ssl
+copy %SCRIPTPATH%\ssl-1.15-py2.5.egg-info $SITE_PACKAGES$\
Attachment #572906 - Flags: review?(bhearsum)
Attachment #572906 - Flags: review?(bhearsum) → review+
Rail took over finishing this up, thanks Rail!
Assignee: bhearsum → rail
I've set all build (mw32-ix-* + w32-*) and ref machines to setup this package. Staging slaves set to pick up this package as well.
According to OPSI the package has been installed on all alive slaves in production. All slaves with not-installed status marked as problematic in slavealloc (disk issues, reimaging, etc.)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: