mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix PyCrypto if using Python 3.
This commit is contained in:
6
Make.bat
6
Make.bat
@@ -245,6 +245,12 @@ REM Main build sequence Ends
|
|||||||
ECHO Fixing backports.csv for Python 2 by adding missing __init__.py
|
ECHO Fixing backports.csv for Python 2 by adding missing __init__.py
|
||||||
type nul >> "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\backports\__init__.py"
|
type nul >> "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\backports\__init__.py"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF %PYTHON_MAJOR% == 3 (
|
||||||
|
ECHO Fixing PyCrypto module for Python 3...
|
||||||
|
CALL "%PYTHON_HOME%\python" "%WD%\pkg\win32\replace.py" "-i" "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\Crypto\Random\OSRNG\nt.py" "-o" "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\Crypto\Random\OSRNG\nt.py.new" "-s" "import winrandom" -r "from . import winrandom"
|
||||||
|
MOVE /Y "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\Crypto\Random\OSRNG\nt.py.new" "%PGBUILDPATH%\%VIRTUALENV%\Lib\site-packages\Crypto\Random\OSRNG\nt.py"
|
||||||
|
)
|
||||||
|
|
||||||
ECHO Assembling runtime environment...
|
ECHO Assembling runtime environment...
|
||||||
CD "%WD%\runtime"
|
CD "%WD%\runtime"
|
||||||
|
|||||||
Reference in New Issue
Block a user