mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
All together now, let's make this real
This commit is contained in:
parent
5858b0b9b4
commit
fda738c90d
|
@ -54,33 +54,6 @@ init:
|
||||||
- curl -fsSL -o "C:\\appveyor.py" https://raw.githubusercontent.com/psycopg/psycopg2/%APPVEYOR_REPO_COMMIT%/scripts/appveyor.py
|
- curl -fsSL -o "C:\\appveyor.py" https://raw.githubusercontent.com/psycopg/psycopg2/%APPVEYOR_REPO_COMMIT%/scripts/appveyor.py
|
||||||
- "%PYEXE% C:\\appveyor.py init"
|
- "%PYEXE% C:\\appveyor.py init"
|
||||||
|
|
||||||
# TODO: exporting variables below to be dropped once all the steps are
|
|
||||||
# moved to the appveyor.py script.
|
|
||||||
|
|
||||||
# Set env variable according to the build environment
|
|
||||||
- SET PYTHON=C:\Python%PYVER%
|
|
||||||
- IF "%PYTHON_ARCH%"=="64" SET PYTHON=%PYTHON%-x64
|
|
||||||
|
|
||||||
# Py 2.7 = VS Ver. 9.0 (VS 2008)
|
|
||||||
# Py 3.4 = VS Ver. 10.0 (VS 2010)
|
|
||||||
# Py 3.5, 3.6, 3.7 = VS Ver. 14.0 (VS 2015)
|
|
||||||
- IF "%PYVER%"=="27" SET VS_VER=9.0
|
|
||||||
- IF "%PYVER%"=="34" SET VS_VER=10.0
|
|
||||||
- IF "%PYVER%"=="35" SET VS_VER=14.0
|
|
||||||
- IF "%PYVER%"=="36" SET VS_VER=14.0
|
|
||||||
- IF "%PYVER%"=="37" SET VS_VER=14.0
|
|
||||||
|
|
||||||
- IF "%VS_VER%"=="10.0" IF "%PYTHON_ARCH%"=="64" SET DISTUTILS_USE_SDK=1
|
|
||||||
|
|
||||||
# Set Python to the path
|
|
||||||
- SET PATH=%PYTHON%;%PYTHON%\Scripts;C:\Program Files\Git\mingw64\bin;%PATH%
|
|
||||||
|
|
||||||
# Setup the compiler based upon version and architecture
|
|
||||||
- ECHO Configuring Compiler
|
|
||||||
- IF "%PYTHON_ARCH%"=="32" (CALL "C:\\Program Files (x86)\\Microsoft Visual Studio %VS_VER%\\VC\\vcvarsall.bat" x86)
|
|
||||||
- IF "%PYTHON_ARCH%"=="64" (CALL "C:\\Program Files (x86)\\Microsoft Visual Studio %VS_VER%\\VC\\vcvarsall.bat" amd64)
|
|
||||||
|
|
||||||
|
|
||||||
# Repository gets cloned, Cache is restored
|
# Repository gets cloned, Cache is restored
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
|
@ -123,15 +123,11 @@ def step_init():
|
||||||
|
|
||||||
|
|
||||||
def step_install():
|
def step_install():
|
||||||
# TODO: enable again
|
|
||||||
return
|
|
||||||
build_openssl()
|
build_openssl()
|
||||||
build_libpq()
|
build_libpq()
|
||||||
|
|
||||||
|
|
||||||
def step_build_script():
|
def step_build_script():
|
||||||
# TODO: enable again
|
|
||||||
return
|
|
||||||
build_psycopg()
|
build_psycopg()
|
||||||
|
|
||||||
|
|
||||||
|
@ -325,8 +321,6 @@ def step_before_test():
|
||||||
|
|
||||||
def step_after_build():
|
def step_after_build():
|
||||||
# Print psycopg and libpq versions
|
# Print psycopg and libpq versions
|
||||||
# TODO: enable
|
|
||||||
return
|
|
||||||
|
|
||||||
for expr in (
|
for expr in (
|
||||||
'psycopg2.__version__',
|
'psycopg2.__version__',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user