Skip to content

Commit e822502

Browse files
committed
Fix build_scripts.
When run the first time nPython.exe doesn't exist when finalize_options is called. Wait until the command is run before checking if it exists or not.
1 parent 95d4246 commit e822502

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def run(self):
259259

260260
class PythonNET_BuildScripts(build_scripts):
261261

262-
def finalize_options(self):
262+
def run(self):
263263
build_scripts.finalize_options(self)
264264

265265
# fixup scripts to look in the build_ext output folder
@@ -273,6 +273,8 @@ def finalize_options(self):
273273
scripts.append(script)
274274
self.scripts = scripts
275275

276+
return build_scripts.run(self)
277+
276278

277279
def _check_output(*popenargs, **kwargs):
278280
"""subprocess.check_output from python 2.7.

0 commit comments

Comments
 (0)