Skip to content

Commit

Permalink
update and re-enable newer windows build
Browse files Browse the repository at this point in the history
also use visual studio 2017 image on appveyor
  • Loading branch information
ndjensen committed Aug 17, 2021
1 parent 786fd66 commit 3fd0c1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
image: Visual Studio 2017

environment:

matrix:
Expand Down
6 changes: 6 additions & 0 deletions commands/_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ def link(self,
build_temp,
target_lang)


# Escape any backslash in the Windows path as a trailing backslash
# will escape a end quote in the link command.
def library_dir_option(self, dir):
dir = dir.replace('\\', '\\\\')
return python_MSVCCompiler.library_dir_option(self, dir)
4 changes: 2 additions & 2 deletions commands/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def run(self):
import sys
import distutils
import distutils.ccompiler
from commands import msvc9compiler
from commands import _msvccompiler

# See commands.msvc9compiler method comments for information on
# this override.
distutils.ccompiler.compiler_class['msvc'] = (
'jepmsvccompiler', 'MSVCCompiler', "Microsoft Visual C++")
sys.modules['distutils.jepmsvccompiler'] = msvc9compiler
sys.modules['distutils.jepmsvccompiler'] = _msvccompiler
old_build_ext.run(self)

# copy the jep.pyd to jep.dll early to avoid confusion
Expand Down

0 comments on commit 3fd0c1b

Please sign in to comment.