Need functioning pyOpenSSL on testers
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
People
(Reporter: bwc, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•6 years ago
|
confirmed pyopenssl-19.1.0 includes openssl for macos (the wheels includes all but libc). So we do not expect problems updating on the macos workers:
[dhouse@t-mojave-r7-121.test.releng.mdc2.mozilla.com ~]$ /usr/local/bin/pip3 install pyopenssl
Collecting pyopenssl
Downloading https://files.pythonhosted.org/packages/9e/de/f8342b68fa9e981d348039954657bdf681b2ab93de27443be51865ffa310/pyOpenSSL-19.1.0-py2.py3-none-any.whl (53kB)
|████████████████████████████████| 61kB 6.2MB/s
Collecting cryptography>=2.8
Downloading https://files.pythonhosted.org/packages/6b/4a/ce93178469d4460d6b3a5e648fc1a2f426030f3d30a12d7ed4df73d044de/cryptography-2.8-cp34-abi3-macosx_10_6_intel.whl (1.6MB)
|████████████████████████████████| 1.6MB 27.8MB/s
Collecting six>=1.5.2
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8
Downloading https://files.pythonhosted.org/packages/d5/61/32b1aa5ef1bf60be4ef679c4aae082a7ceef98517e0e0fde68072c6ef8b6/cffi-1.13.2-cp37-cp37m-macosx_10_6_intel.whl (258kB)
|████████████████████████████████| 266kB 43.7MB/s
Collecting pycparser
Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
|████████████████████████████████| 163kB 48.0MB/s
Building wheels for collected packages: pycparser
Building wheel for pycparser (setup.py) ... done
Created wheel for pycparser: filename=pycparser-2.19-py2.py3-none-any.whl size=111029 sha256=c642f717ddc476bb655ddb51f215b1e5bfd615bb21558f90e03b67a03b786ba5
Stored in directory: /Users/dhouse/Library/Caches/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built pycparser
Installing collected packages: six, pycparser, cffi, cryptography, pyopenssl
Successfully installed cffi-1.13.2 cryptography-2.8 pycparser-2.19 pyopenssl-19.1.0 six-1.14.0
[dhouse@t-mojave-r7-121.test.releng.mdc2.mozilla.com ~]$ brew upgrade openssl
Warning: openssl 1.1.1d already installed
[dhouse@t-mojave-r7-121.test.releng.mdc2.mozilla.com ~]$ otool -L /usr/local/opt/openssl@1.1/bin/openssl
/usr/local/opt/openssl@1.1/bin/openssl:
/usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
[dhouse@t-mojave-r7-121.test.releng.mdc2.mozilla.com ~]$ find /usr/local/lib/python3.7/site-packages/cryptography/ -name "*.so" | xargs -I{} otool -L {}
/usr/local/lib/python3.7/site-packages/cryptography//hazmat/bindings/_padding.abi3.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
/usr/local/lib/python3.7/site-packages/cryptography//hazmat/bindings/_constant_time.abi3.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
/usr/local/lib/python3.7/site-packages/cryptography//hazmat/bindings/_openssl.abi3.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
Comment 4•4 years ago
|
||
Is the only thing needed here uploading a package to internal pypi? Not working today but can tackle next week, please need info if so.
Reporter | ||
Comment 5•4 years ago
|
||
It might be enough? We also need the service_identity package now. Just having this working for one platform would be a huge improvement, if that helps expedite.
Comment 6•4 years ago
|
||
Looks like pyOpenSSL==19.1.0 is already on the internal pypi. I can also upload version 20.0.1 if desired.
I uploaded service_identity==18.1.0 while I was there.
Reporter | ||
Comment 7•4 years ago
|
||
Just tried this out, we seem to be failing on a dependency (setuptools-rust):
https://treeherder.mozilla.org/jobs?repo=try&revision=dc666cd26f677abfeda14627dda29069cb4f1acf
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Also added setuptools-rust==0.12.1.
(And thanks for the needinfo, please needinfo again if there's even more missing or I'll likely miss this again)
Reporter | ||
Comment 9•3 years ago
•
|
||
Looks like we need yet more deps. Is there a way to run pip against our pypi from a developer machine?
Latest failure on try seems to indicate we need pyasn1-modules. We might also need setuptools>=46.1 and setuptools_scm[toml]>=3.4.3, but it is hard to tell because an intermediate dependency might be a different version than what we have on our pypi. We probably need semantic-version (>=2.6.0 is what pip wants for me), but again it is hard to tell because of differences in version in intermediate dependencies.
Comment 10•3 years ago
|
||
Yeah, you should be able to use pip install --no-index --find-links https://pypi.pub.build.mozilla.org/pub <package>
. It will fail on the first package that is missing, but then you could do a normal pip install
of that package (ideally in a virtualenv), and then run the first command again to see the next failure. After a few iterations of that you can generate the full list of packages you need.
Reporter | ||
Comment 11•3 years ago
|
||
Reporter | ||
Comment 12•3 years ago
|
||
Reporter | ||
Comment 13•3 years ago
|
||
So, after experimenting with a venv, it looks like the only thing we're missing now is pyasn1-modules. The try push in comment 12 ought to be able to pick that up if it is added to the pypi and retriggered, could we give that a go?
Comment 14•3 years ago
|
||
I have uploaded the module:
https://pypi.pub.build.mozilla.org/pub/pyasn1_modules-0.2.8-py2.py3-none-any.whl
I have also retriggered a few jobs on various platforms to see if this works.
Reporter | ||
Comment 15•3 years ago
|
||
Thanks! Seems to be working!
Reporter | ||
Updated•3 years ago
|
Description
•