Commit b897da91 by plusvic

Use 64bit library when appropriate

parent 9660774b
...@@ -13,11 +13,11 @@ environment: ...@@ -13,11 +13,11 @@ environment:
# Python 2.6.6 is the latest Python 2.6 with a Windows installer # Python 2.6.6 is the latest Python 2.6 with a Windows installer
# See: https://github.com/ogrisel/python-appveyor-demo/issues/10 # See: https://github.com/ogrisel/python-appveyor-demo/issues/10
- PYTHON: "C:\\Python266" # - PYTHON: "C:\\Python266"
PYTHON_VERSION: "2.6.6" # PYTHON_VERSION: "2.6.6"
PYTHON_ARCH: "32" # PYTHON_ARCH: "32"
OPENSSL_LIB: "openssl-1.0.2k-vs2008" # OPENSSL_LIB: "openssl-1.0.2k-vs2008"
VS: "Visual Studio 9 2008" # VS: "Visual Studio 9 2008"
- PYTHON: "C:\\Python266-x64" - PYTHON: "C:\\Python266-x64"
PYTHON_VERSION: "2.6.6" PYTHON_VERSION: "2.6.6"
...@@ -111,6 +111,13 @@ install: ...@@ -111,6 +111,13 @@ install:
- 7z x openssl.7z - 7z x openssl.7z
- cd yara-python - cd yara-python
- ps: >-
If ($env:PYTHON_ARCH -Match "32") {
$env:OPENSSL_LIB_DIR="lib"
} Else {
$env:OPENSSL_LIB_DIR="lib64"
}
# This is workaround for solving an issue caused by CMake not finding an # This is workaround for solving an issue caused by CMake not finding an
# appropriate compilet for Visual Studio 9 2008 Win64. This workaround was # appropriate compilet for Visual Studio 9 2008 Win64. This workaround was
# copied from: https://github.com/conda/conda-build/blob/master/appveyor.yml # copied from: https://github.com/conda/conda-build/blob/master/appveyor.yml
...@@ -135,7 +142,7 @@ clone_script: ...@@ -135,7 +142,7 @@ clone_script:
build_script: build_script:
# Build the compiled extension # Build the compiled extension
- "%CMD_IN_ENV% python setup.py build_ext --enable-cuckoo - "%CMD_IN_ENV% python setup.py build_ext --enable-cuckoo
-L../jansson-%JANSSON_VERSION%/build/lib/Release;../%OPENSSL_LIB%/lib -L../jansson-%JANSSON_VERSION%/build/lib/Release;../%OPENSSL_LIB%/%OPENSSL_LIB_DIR%
-I../jansson-%JANSSON_VERSION%/build/include;../%OPENSSL_LIB%/include -I../jansson-%JANSSON_VERSION%/build/include;../%OPENSSL_LIB%/include
-llibeay32MT" -llibeay32MT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment