Repository navigation
Open
Description
Hello,
I've tried to run your script using the develop branch, on Windows 10, with administrator rights, I got an error saying "patch is not recognized as an internal command".
I then installed "patch" from here http://gnuwin32.sourceforge.net/ but it didn't fix the issue, the binaries seem old ... any idea?
C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop>nmake -f Makefile.win
Microsoft (R) Program Maintenance Utility Version 14.24.28316.0
Copyright (C) Microsoft Corporation. Tous droits réservés.
pip install zc.buildout
Requirement already satisfied: zc.buildout in c:\users\username\appdata\local\programs\python\python36-32\lib\site-packages (2.13.2)
Requirement already satisfied: setuptools>=8.0 in c:\users\username\appdata\local\programs\python\python36-32\lib\site-packages (from zc.buildout) (45.1.0)
buildout bootstrap
Removed existing develop-eggs directory
Creating directory 'C:\\Users\\username\\Downloads\\relocatable-python3-develop\\relocatable-python3-develop\\develop-eggs'.
bin\buildout
Installing 'zc.buildout', 'setuptools'.
We have a develop egg: zc.buildout 2.13.2
We have a develop egg: setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/c/certifi/certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d' from setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/w/wincertstore/wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2' from setuptools 45.1.0
Develop: 'C:\\Users\\username\\Downloads\\relocatable-python3-develop\\relocatable-python3-develop\\.'
Installing 'zc.recipe.egg'.
We have the best distribution that satisfies 'zc.recipe.egg>=2.0.6'.
Picked: zc.recipe.egg = 2.0.7
Updating scripts.
Installing 'python'.
We have a develop egg: python 0.1
Getting required 'infi.execute'
required by python 0.1.
We have the best distribution that satisfies 'infi.execute'.
Picked: infi.execute = 0.1.8
We have a develop egg: setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/c/certifi/certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d' from setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/w/wincertstore/wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2' from setuptools 45.1.0
Getting required 'infi.monotonic_time'
required by infi.execute 0.1.8.
We have the best distribution that satisfies 'infi.monotonic_time'.
Picked: infi.monotonic-time = 0.1.9
bin\build
executing "./bin/buildout -c buildout-build-windows.cfg "
Installing 'zc.buildout', 'setuptools'.
We have a develop egg: zc.buildout 2.13.2
We have a develop egg: setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/c/certifi/certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d' from setuptools 45.1.0
Adding find link 'https://files.pythonhosted.org/packages/source/w/wincertstore/wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2' from setuptools 45.1.0
Develop: 'C:\\Users\\username\\Downloads\\relocatable-python3-develop\\relocatable-python3-develop\\.'
Installing 'z3c.recipe.mkdir'.
We have the best distribution that satisfies 'z3c.recipe.mkdir'.
Picked: z3c.recipe.mkdir = 0.7
Installing 'hexagonit.recipe.cmmi'.
We have the best distribution that satisfies 'hexagonit.recipe.cmmi'.
Picked: hexagonit.recipe.cmmi = 2.0
Getting required 'hexagonit.recipe.download'
required by hexagonit.recipe.cmmi 2.0.
We have the best distribution that satisfies 'hexagonit.recipe.download'.
Picked: hexagonit.recipe.download = 1.7.1
Updating mkdir.
mkdir: set permissions for C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist
mkdir: set permissions for C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist\bin
mkdir: set permissions for C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist\include
mkdir: set permissions for C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist\lib
Installing zlib.
zlib: [ENV] CygwinBinDir = C:\Cygwin\bin
zlib: [ENV] DevEnvDir = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE
zlib: [ENV] FrameworkDir = C:\WINDOWS\Microsoft.NET\Framework64
zlib: [ENV] FrameworkVersion = v4.0.30319
zlib: [ENV] GitBinDir = C:\Cygwin\home\Administrator\git\bin
zlib: [ENV] GitDir = C:\Cygwin\home\Administrator\git
zlib: [ENV] IIPREFIX = C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist
zlib: [ENV] INCLUDE = C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include;C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist\include
zlib: [ENV] LIB = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\lib\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\ucrt\x64;C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist\lib
zlib: [ENV] LIBPATH = C:\WINDOWS\Microsoft.NET\Framework64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\lib\x64
zlib: [ENV] MSVCDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
zlib: [ENV] Msvc = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023
zlib: [ENV] NODEBUG = 1
zlib: [ENV] PATH = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\bin;C:\WINDOWS\Microsoft.NET\Framework64;C:\WINDOWS\Microsoft.NET\Framework64\Microsoft .NET Framework 3.5 (Pre-Release Version);C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\VCPackages;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Cygwin\home\Administrator\git\cmd;C:\Cygwin\home\Administrator\git\bin;C:\Cygwin\home\Administrator\python\bin;C:\Cygwin\bin
zlib: [ENV] PREFIX = C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\dist
zlib: [ENV] PerlExe = C:\Perl64\bin\perl.exe
zlib: [ENV] PosixHomeDir = C:\Cygwin\home\Administrator
zlib: [ENV] PythonBinDir = C:\Cygwin\home\Administrator\python\bin
zlib: [ENV] PythonDir = C:\Cygwin\home\Administrator\python
zlib: [ENV] Recipe = hexagonit.recipe.cmmi
zlib: [ENV] SDKBIN = C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64
zlib: [ENV] TZ =
zlib: [ENV] VCINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC
zlib: [ENV] VCRoot = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC
zlib: [ENV] VCTargetsPath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets
zlib: [ENV] VSBIN = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
zlib: [ENV] VSINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
zlib: [ENV] VSLIB = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\lib\x64
zlib: [ENV] WindowsSdkDir = C:\Program Files (x86)\Windows Kits\10
zlib: [ENV] WindowsSdkInclude = C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0
zlib: [ENV] WindowsSdkLib = C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0
zlib: [ENV] XProgramFiles = C:\Program Files (x86)
zlib: [ENV] XSDKVer = 10.0.17763.0
zlib: [ENV] XSystemDrive = C:
zlib: [ENV] XWinDir = C:\WINDOWS
zlib: Removing already existing directory C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\parts\zlib__compile__
Searching cache at c:\users\username\downloads\relocatable-python3-develop\relocatable-python3-develop\.cache\
Using cache file c:\users\username\downloads\relocatable-python3-develop\relocatable-python3-develop\.cache\92a28308758fbed2799ebe379867c065
zlib: Extracting package to C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\parts\zlib__compile__
zlib: Applying patches
'patch' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
zlib: Command failed with exit code 1: patch -p1 < C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop/src/patches/zlib-1.2.8-windows-Makefile.patch
zlib: Compilation error. The package is left as is at C:\Users\username\Downloads\relocatable-python3-develop\relocatable-python3-develop\parts\zlib__compile__\zlib-1.2.8 where you can inspect what went wrong
While:
Installing zlib.
Error: System error
NMAKE : fatal error U1077: 'bin\build.EXE' : code retour '0x1'
Stop.
Metadata
Metadata
Assignees
Labels
No labels
Activity
wiggin15 commentedon Feb 5, 2020
Hi @ThomasPujolle . Thanks for reporting this! Building relocatable-python 3.8 on Windows may be tricky, because it requires multiple pieces of software of specific versions, and the process may be coupled pretty tightly to the environment we use on our side. I'm glad you're trying to build it so we can hash out some of the missing pieces, either in the documentation or through the code.
To our point:
We use Cygwin to install a few unix packages that are needed for building. When installing Cygwin you can choose a list of packages to install. "patch" is apparently required, but there could be other packages required, like "autoconf", "libtool" etc. For the record here is the full list of packages we have on our Cygwin deployment (not all of them are needed):
Let us know if this helps.
ThomasPujolle commentedon Feb 5, 2020
Ok, so I did install the missing packages in Cygwin, it fixed the issues for most calls and for the rest I just had to change binary path in the buildout-build-windows.cfg. I also had to use Curl 5.24 installed manually without using curl from Cygwin. Some errors remains though:
Any idea where that is comming from ? I tried to skip one but there are plenty more after.
Thanks for your help
wiggin15 commentedon Feb 5, 2020
I synced the source files. Please try again with the original package names.
ThomasPujolle commentedon Feb 5, 2020
Ok much better, it went on for a while and then stopped here:
I think iconv was not properly build earlier, here is the outcome:
Sorry for the french, it seems there was an issue with Visual Studio
Edit: I changed 2017 for 2019 since I have visual studio community 2019. Code is running, will update on results.
Edit2: didn't work for same reason, found that this path :
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.propsis different on VS2019, it's
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160This path
${:VSINSTALLDIR}\Common7\Tools\binalso does not exist anymoreConfig updated, code running.
ThomasPujolle commentedon Feb 6, 2020
Still no luck, although it does not seem too hard to fix, some path are just wrong (due to VS 2019) and need fixing after an error is thrown during compilation.
This time it's this path:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160Platforms\Win32\Platform.propsA backslash is missing between v160 & Platforms, I don't really know how to fix that since all path composed with $(VCTargetsPath) (
VCTargetsPath = ${:VSINSTALLDIR}\MSBuild\Microsoft\VC\v160) add the missing backslash, but not here.Any idea?
wiggin15 commentedon Feb 6, 2020
Moving from Visual Studio 2010 to 2017 wasn't simple. I'm afraid making the build work with VS 2019 will not be an easy task, too. At this point, I'm afraid VS 2017 is a requirement. This is also the version that the Python dev team is using, by the way (https://devguide.python.org/setup/#windows).
If it helps, I also synced the built binaries for relocatable-python 3.8.0 here: ftp://python.infinidat.com/python/python-v3.8.0.3-windows-x64.tar.gz.
ThomasPujolle commentedon Feb 6, 2020
All right, since you kindly provided those builds I guess the way forward would be to use one of them without re-building everything. Did you have to update your scripts for each version of python ? If you have 3.6 and 3.7 for Windows hidden somewhere that would be perfect for me. Another thing, the first thing I tried with python v3.8.0.3 & python 3.5.1.9 was to install pip. It went well but I got an error while trying to upgrade it using the famous
python -m pip install --upgrade pipOutput:
wiggin15 commentedon Feb 11, 2020
We didn't encounter this issue. We will try to reproduce on our local environment.
wiggin15 commentedon Feb 11, 2020
Our relocatable-python package does not come with pip so the output of the command was "No module named pip". After installing with "get-pip", the command works. I also tried with virtualenv (although we don't really use it - relocatable-python is an isolated environment of its own) and couldn't reproduce.
ThomasPujolle commentedon Feb 17, 2020
Okay, I initially installed pip with PyCharm so there is a chance that the command used was not the same.
As per environments with python 3.6 and 3.7, what would be the course of action? Does your work has to be adapted for each new version of Python?
Should this conversation be taken some place else since we are getting further away from the initial subject?
Thanks for your help
wiggin15 commentedon Feb 18, 2020
The code generally needs to be adapted for new versions of Python. We have a branch for Python 3.7 but it does not include Windows support. We have no version of Python 3.6. We made the jump from 3.5 directly to 3.8.