Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd75cdcc

Browse files
committed
Always run configure step if dotnet modules are present
1 parent640b497 commitd75cdcc

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

‎setup.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ def run(self):
106106
other_modules= [libforlibinorig_modulesifnotisinstance(lib,DotnetLib)]
107107

108108
ifdotnet_modules:
109-
ifos.path.isfile(CONFIGURED_PROPS):
110-
self.announce("Already configured",level=distutils.log.INFO)
111-
else:
112-
self.announce("Writing configured.props...",level=distutils.log.INFO)
113-
_write_configure_props()
109+
self.run_command("configure")
114110

115111
forlibindotnet_modules:
116112
output=os.path.join(os.path.abspath(self.build_lib),lib.args.pop("output"))
@@ -151,14 +147,6 @@ def run(self):
151147
# If no modules need to be compiled, skip
152148

153149

154-
classbdist_wheel_patched(bdist_wheel):
155-
deffinalize_options(self):
156-
# Monkey patch bdist_wheel to think the package is pure even though we
157-
# include DLLs
158-
super().finalize_options()
159-
self.root_is_pure=True
160-
161-
162150
withopen("README.rst","r")asf:
163151
long_description=f.read()
164152

@@ -221,7 +209,6 @@ def finalize_options(self):
221209
# data_files=[("{install_platlib}", ["{build_lib}/pythonnet"])],
222210
cmdclass={
223211
"build_ext":BuildDotnet,
224-
"bdist_wheel":bdist_wheel_patched,
225212
"configure":Configure,
226213
},
227214
py_modules=["clr"],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp