Christian Heimes wrote:
> For PEP 644 I added new instructions how to build Python 3.10 with 
> custom OpenSSL builds. The instructions should work on all major Linux 
> distributions. They have been tested on Debian-like and Fedora-like 
> platforms:
> https://docs.python.org/3/using/unix.html?highlight=openssl#custom-openssl

CentOS Linux release 7.9.2009 (Core)
trying to build python 3.10.4

I followed the instructions at 
https://docs.python.org/3/using/unix.html?highlight=openssl#custom-openssl and 
cannot import ssl in the resulting build.

My log of what I did follows. Struggling with this for a couple of days, so any 
help would be appreciated.

2022-05-24 11:24 sudo find /etc/ -name openssl.cnf -printf "%h\n"
/etc/pki/tls
2022-05-24 11:27 cd /home/lking/openssl/openssl-1.1.1o
2022-05-24 11:27 sudo ./config --prefix=/usr/local/custom-openssl --libdir=lib 
--openssldir=/etc/pki/tls
2022-05-24 11:28 sudo make clean
2022-05-24 11:29 sudo make -j1 depend
2022-05-24 11:29 sudo make -j > logs/build1.txt
2022-05-24 11:32 sudo make install_sw > logs/install_sw.txt
2022-05-24 11:33 cd /home/lking/python/Python-3.10.4
2022-05-24 11:34 ./configure -C --with-openssl=/usr/local/custom-openssl 
--with-openssl-rpath=auto --prefix=/usr/local/python-3.10.4 > 
logs/configure4.txt
2022-05-23 11:35 vim /home/lking/python/Python-3.10.4/Makefile # 
https://stackoverflow.com/a/50855855/799921
                199c199
                < RUNSHARED=
                ---
                > RUNSHARED=LD_LIBRARY_PATH=/usr/local/custom-openssl/lib
2022-05-24 11:37 sudo make clean
2022-05-24 11:38 sudo make -j > logs/buildlog4.txt
2022-05-24 11:42 sudo make altinstall > logs/altinstall4.txt
2022-05-24 11:43 [lking@loutility-server-digitalocean Python-3.10.4]$ python3.10
Python 3.10.4 (main, May 15 2022, 12:44:05) [GCC 4.8.5 20150623 (Red Hat 
4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PNC7IT64YAVR72TVQPLBRSTC5XD6BCAY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to