|
18 | 18 | from distutils.command.sdist import sdist |
19 | 19 | from distutils.cmd import Command |
20 | 20 | from distutils.dir_util import remove_tree |
21 | | -from distutils.sysconfig import get_python_inc |
| 21 | +from distutils.sysconfig import get_python_inc, get_python_lib |
22 | 22 | from distutils import log |
23 | 23 | import os, os.path |
24 | 24 | import glob |
@@ -183,7 +183,13 @@ def recursive_package_data(src, package_dir='overviewer_core'): |
183 | 183 | c_overviewer_files = ['overviewer_core/src/' + s for s in c_overviewer_files] |
184 | 184 | c_overviewer_includes = ['overviewer_core/src/' + s for s in c_overviewer_includes] |
185 | 185 |
|
186 | | -setup_kwargs['ext_modules'].append(Extension('overviewer_core.c_overviewer', c_overviewer_files, include_dirs=['.', numpy_include] + pil_include, depends=c_overviewer_includes, extra_link_args=[])) |
| 186 | +setup_kwargs['ext_modules'].append(Extension( |
| 187 | + 'overviewer_core.c_overviewer', |
| 188 | + c_overviewer_files, |
| 189 | + include_dirs=['.', numpy_include] + pil_include, |
| 190 | + depends=c_overviewer_includes, |
| 191 | + extra_link_args=[] |
| 192 | +)) |
187 | 193 |
|
188 | 194 |
|
189 | 195 | # tell build_ext to build the extension in-place |
@@ -290,6 +296,9 @@ def build_extensions(self): |
290 | 296 | e.extra_link_args.append("/MANIFEST") |
291 | 297 | e.extra_link_args.append("/DWINVER=0x060") |
292 | 298 | e.extra_link_args.append("/D_WIN32_WINNT=0x060") |
| 299 | + # workaround for our extremely shitty build system |
| 300 | + # yeet this into a fire once we move to github actions |
| 301 | + e.extra_link_args.append("/LIBPATH:C:\Python37\Libs") |
293 | 302 | if c == "unix": |
294 | 303 | # customize the build options for this compilier |
295 | 304 | for e in self.extensions: |
|
0 commit comments