Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools_dso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
setuptools_dso
Commits
5c4af0ce
Commit
5c4af0ce
authored
Feb 26, 2021
by
Michael Davidsaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info file export soname and fix for windows w/ py < 3.8
parent
42641e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
src/setuptools_dso/dsocmd.py
src/setuptools_dso/dsocmd.py
+27
-7
No files found.
src/setuptools_dso/dsocmd.py
View file @
5c4af0ce
...
@@ -412,17 +412,37 @@ class build_dso(dso2libmixin, Command):
...
@@ -412,17 +412,37 @@ class build_dso(dso2libmixin, Command):
file.write(
file.write(
textwrap.dedent(
textwrap.dedent(
"""
"""
import os.path
# generated by setuptools_dso
import sys
import sys, os
dir = os.path.dirname(__file__)
if sys.platform == '
win32
':
# on windows, extend DLL search path to include
os.add_dll_directory(dir)
# the directory containing this file
def fixpath():
libdir = os.path.dirname(__file__)
if hasattr(os, '
add_dll_directory
'): # py >= 3.8
os.add_dll_directory(libdir)
elif sys.platform == "win32":
path = os.environ.get('
PATH
', '').split(os.pathsep)
path.append(libdir)
os.environ['
PATH
'] = os.pathsep.join(path)
fixpath()
del fixpath
dsoname = {dsoname!r}
dsoname = {dsoname!r}
libname = {libname!r}
libname = {libname!r}
soname = {soname!r}
dir = os.path.dirname(__file__)
filename = os.path.join(dir, libname)
filename = os.path.join(dir, libname)
__all__ = ("dsoname", "libname", "filename")
sofilename = os.path.join(dir, soname)
del dir
__all__ = ("dsoname", "libname", "soname", "filename", "sofilename")
"""
"""
).format(dsoname=dso.name, libname=self._name2libname(dso))
).format(dsoname=dso.name,
libname=self._name2libname(dso),
soname=self._name2libname(dso, so=True))
)
)
if self.inplace:
if self.inplace:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment