mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Hack to compile PyCrypto with VC++
This commit is contained in:
11
Make.bat
11
Make.bat
@@ -180,6 +180,11 @@ REM Main build sequence Ends
|
|||||||
:CREATE_VIRTUAL_ENV
|
:CREATE_VIRTUAL_ENV
|
||||||
ECHO Creating virtual environment...
|
ECHO Creating virtual environment...
|
||||||
IF NOT EXIST "%PGBUILDPATH%" MKDIR "%PGBUILDPATH%"
|
IF NOT EXIST "%PGBUILDPATH%" MKDIR "%PGBUILDPATH%"
|
||||||
|
|
||||||
|
REM If we're using VC++, and this is Python 3.6+, we need a hack for PyCrypto
|
||||||
|
IF "%MAKE%" == "nmake" (
|
||||||
|
IF %PYTHON_VERSION% >= 36 SET CL=-FI"%VCINSTALLDIR%\INCLUDE\stdint.h"
|
||||||
|
)
|
||||||
|
|
||||||
CD "%PGBUILDPATH%"
|
CD "%PGBUILDPATH%"
|
||||||
"%PYTHON_HOME%\Scripts\virtualenv.exe" "%VIRTUALENV%"
|
"%PYTHON_HOME%\Scripts\virtualenv.exe" "%VIRTUALENV%"
|
||||||
@@ -191,6 +196,12 @@ REM Main build sequence Ends
|
|||||||
CALL pip install -r "%WD%\requirements.txt" || EXIT /B 1
|
CALL pip install -r "%WD%\requirements.txt" || EXIT /B 1
|
||||||
CALL pip install sphinx || EXIT /B 1
|
CALL pip install sphinx || EXIT /B 1
|
||||||
|
|
||||||
|
REM If we're using VC++, and this is Python 3.6+, we need to remove the hack
|
||||||
|
REM above or it will break qmake. Sigh.
|
||||||
|
IF "%MAKE%" == "nmake" (
|
||||||
|
IF %PYTHON_VERSION% >= 36 SET CL=
|
||||||
|
)
|
||||||
|
|
||||||
CD %WD%
|
CD %WD%
|
||||||
EXIT /B 0
|
EXIT /B 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user