Jump to content

Python 3.5 Runtime Redistributable backported to XP


FranceBB

Recommended Posts

10 hours ago, VistaLover said:

So, whenever it's out, v2.7.18 will be the EoL/EoS Python 2.7 release... :(

Yes, this is very sad news. :( But thanks to this thread and amazing people who write here, I think we will always have a chance, that Python 3.7 will be functional under XP.

JFYI, FontForge has a newer version, based on Python 3.7.4. All the problems that I have mentioned above are also relevant to it. For my experiments I choose not the latest version, based on Python 2.7.16 , because it is little easier to adapt under XP.

Edited by -SnooPY-
Link to comment
Share on other sites

  • 1 month later...

A reddit user has posted his custom Python 3.5 binaries intended for Windows XP.  The download can be found at https://drive.google.com/open?id=0BwiHllHhj79zaF9faEVsQUsxNDQ

As he has not provided an installer I have written this little reg file to provide some of the registry settings one would expect with an official msi installer.  It includes associating file types with Python, installation of wheels by double clicking .whl files, the Python path, and the install path.  It has been written for an installation at C:\Python35 and needs to be edited if you want to install Python elsewhere.  ideally you would use a batch file with the reg command because then you include variables like %SYSTEMROOT% in paths.

I have installed this version of Python on my XP machine, and so far everything has gone swimmingly. I ran get-pip.py and the latest versions of pip, wheels, and setup tools were installed with no errors.  I have also installed requests2 as a Python wheel and that went OK too.  I have been experimenting with this Python as a means to download videos, and despite only succeeding in downloading one video using urllib and requests I have concluded that it is a useful addition to my toolbox and shall keep it on my hard drive

According to the developer "zipimport and many 3rd party c extensions don't work on Windows XP now"

Requires Microsoft Visual C++ 2015 Redistributable

 

Python 3.5.reg

Edited by Zorba the Geek
HTML code for links not possible.
Link to comment
Share on other sites

  • 2 months later...

I'm sorry to pester again with silly questions, but what about PyQt5 for XP? I recently came across an interesting project called PyQt5-xp. It looks promising and includes officially unsupported PyQt 5.11.3 and PyQt-sip 4.19.13, but unfortunately compiled for Python 2.7 only. If someone is willing and free time to compile these libraries also for Python 3.7, that would be wonderful.

Link to comment
Share on other sites

3 hours ago, -SnooPY- said:

I'm sorry to pester again with silly questions, but what about PyQt5 for XP? I recently came across an interesting project called PyQt5-xp. It looks promising and includes officially unsupported PyQt 5.11.3 and PyQt-sip 4.19.13, but unfortunately compiled for Python 2.7 only. If someone is willing and free time to compile these libraries also for Python 3.7, that would be wonderful.

Python 2.x and 3.x are two very different languages not compatible with one another. This led to a lot of confusion at the beginning 'cause developers had to rewrite their code and many of them never did and remained on 2.x (which is why it continued to receive security updates for a lot of time). 

 

In other words, I'm not really sure it will compile at all if I target 3.x

Edited by FranceBB
Link to comment
Share on other sites

16 hours ago, FranceBB said:

Python 2.x and 3.x are two very different languages not compatible with one another.

In other words, I'm not really sure it will compile at all if I target 3.x

If I'm not mistaken, Python is only used to create the configuration, but a crucial part of *.dll and *.pyd code written in C. Unfortunately, at the moment I can not run MSVC 2013 on XP to check it out. I was able to compile some of the simpler libraries, such as the OpenSSL, using MinGW 4.92, but I have not yet mastered PyQt. That is why I am asking for help here from the more experienced and intelligent people.

 

Link to comment
Share on other sites

  • 2 months later...

Greetings.
I had compiled Cryptography 2.9.4, cffi 0.14.0 and some  other libs for Python 3.7.1 (thousand thanks to Dibya) for WinXP (without SSE2 support).
OpenSSL 1.1.1g compiled with MSVC for Python 2.7 https://www.microsoft.com/en-us/download/details.aspx?id=44266
*.dll to *.def converted with pexports https://sourceforge.net/projects/mingw/files/MinGW/Extension/pexports/
Cryptography compiled (and *.def to *.a converted) with  MinGW GCC 6.1 http://files.1f0.de/mingw/mingw-w64-gcc-6.1-stable-r20.7z
Command line for compiling
python setup.py build -c mingw32
But it's also need some changes in distutils and setup.py...

At least streamlink, youtube-dl and mitmproxy (6.0 from git) works perfectly.
Full archive from  C:\Python37
https://mega.nz/#!v8MjAATQ!fYErykcN0bBSVvU2-SjqcY8UG6sJsMZYQk5B_X6WflQ

 

Link to comment
Share on other sites

  • 2 weeks later...
On 5/7/2020 at 12:26 PM, cmalex said:

At least streamlink, youtube-dl and mitmproxy (6.0 from git) works perfectly.

Do you have compiled from sources with your modded Python37 ?

I'm a newbie in this domain, how do you do that ? :angel

Edited by genieautravail
Correction
Link to comment
Share on other sites

  • 1 year later...
On 5/7/2020 at 1:26 PM, cmalex said:

Evil Microsoft :realmad: have removed that package (VCForPython27.msi) last April (2021) ...
Fortunately, WebArchive have salvaged it below:

http://web.archive.org/web/20210414074322/https://www.microsoft.com/en-us/download/details.aspx?id=44266

http://web.archive.org/web/20210106040224if_/https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi

Digitally signed (SHA1, WinXP compatible) on Sep 29th, 2014 ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...