-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main' into main
- Loading branch information
Showing
2 changed files
with
139 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,14 +154,24 @@ def copy_extensions_to_source(self): | |
|
||
if sys.platform == "darwin": | ||
ext = ".dylib" | ||
elif sys.platform == "win32": | ||
ext = ".dll" | ||
else: | ||
ext = ".so" | ||
|
||
pref = "lib" | ||
if sys.platform == "win32": | ||
pref = "" | ||
else: | ||
pref = "lib" | ||
|
||
copy_file( | ||
os.path.join(cwd, "build", "src", "%sdebug-mgr%s" % (pref, ext)), | ||
os.path.join(package_dir, "%sdebug-mgr%s" % (pref, ext))) | ||
|
||
if sys.platform == "win32": | ||
copy_file( | ||
os.path.join(cwd, "build", "src", "debug-mgr.lib" ), | ||
os.path.join(package_dir, "debug-mgr.lib" % (pref, ext))) | ||
|
||
dest_filename = os.path.join(package_dir, filename) | ||
|
||
|
@@ -171,10 +181,23 @@ def copy_extensions_to_source(self): | |
|
||
if sys.platform == "darwin": | ||
libext = ".dylib" | ||
libpref = "lib" | ||
elif sys.platform == "win32": | ||
libext = ".dll" | ||
libpref = "lib" | ||
else: | ||
libext = ".so" | ||
libpref = "lib" | ||
|
||
libpref = "lib" | ||
if sys.platform == "win32": | ||
package_data = [ | ||
"debug-mgr.dll", | ||
"debug-mgr.lib" | ||
] | ||
else: | ||
package_data = [ | ||
"%sdebug-mgr.%s" % (libpref, libext) | ||
] | ||
|
||
ext = Extension("debug_mgr.core", | ||
extra_compile_args=extra_compile_args, | ||
|
@@ -194,7 +217,7 @@ def copy_extensions_to_source(self): | |
version=version, | ||
packages=['debug_mgr'], | ||
package_dir = {'' : 'python'}, | ||
package_data={ 'debug_mgr': ["%sdebug-mgr%s" % (libpref, libext)] }, | ||
package_data={ 'debug_mgr': package_data }, | ||
author = "Matthew Ballance", | ||
author_email = "[email protected]", | ||
description = ("Simple debug manager for use of C++ Python extensions"), | ||
|