summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2016-01-03 14:33:42 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2016-01-03 15:09:44 -0500
commitbae41e59cbb95987d919ced0ba2c4dd01337b1ae (patch)
treeb8d42747f73222c01590287a6a7947a9914b9727
parent7f31dec150a9e1749d1e55f7a6156126b4025a0b (diff)
downloadpycurl-bae41e59cbb95987d919ced0ba2c4dd01337b1ae.tar.gz
Various build fixes
-rw-r--r--winbuild.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/winbuild.py b/winbuild.py
index 99359a2..8dc5fe4 100644
--- a/winbuild.py
+++ b/winbuild.py
@@ -33,7 +33,7 @@ git_root = 'c:/program files/git'
# where NASM is installed, for building OpenSSL
nasm_path = 'c:/program files (x86)/nasm'
# where ActiveState Perl is installed, for building 64-bit OpenSSL
-activestate_perl_path = r'c:\dev\perl64\bin'
+activestate_perl_path = r'c:\dev\perl64'
# which versions of python to build against
python_versions = ['2.6.6', '2.7.10', '3.2.5', '3.3.5', '3.4.3', '3.5.0']
# where pythons are installed
@@ -217,6 +217,7 @@ class Builder(object):
print("Executing:")
with open('doit.bat', 'r') as f:
print(f.read())
+ sys.stdout.flush()
subprocess.check_call(['doit.bat'])
@property
@@ -293,7 +294,7 @@ class OpensslBuilder(Builder):
# msysgit perl has trouble with backslashes used in
# win64 assembly things; use ActiveState Perl
- f.write("set path=%s;%path%\n" % activestate_perl_bin_path)
+ f.write("set path=%s;%%path%%\n" % activestate_perl_bin_path)
f.write("perl -v\n")
else:
target = 'VC-WIN32'
@@ -499,8 +500,12 @@ class LibcurlBuilder(Builder):
cares_part = '-cares-%s' % dll_or_static
else:
cares_part = ''
- output_dir_name = 'libcurl-vc-%s-release-%s%s%s%s-ipv6-sspi%s%s' % (
- bitness_indicator, dll_or_static, openssl_part, cares_part, zlib_part, spnego_part, winssl_part)
+ if self.use_libssh2:
+ libssh2_part = '-ssh2-%s' % dll_or_static
+ else:
+ libssh2_part = ''
+ output_dir_name = 'libcurl-vc-%s-release-%s%s%s%s%s-ipv6-sspi%s%s' % (
+ bitness_indicator, dll_or_static, openssl_part, cares_part, zlib_part, libssh2_part, spnego_part, winssl_part)
return output_dir_name
@property