Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d75cdcc

Browse files
committed
Always run configure step if dotnet modules are present
1 parent 640b497 commit d75cdcc

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 = [lib for lib in orig_modules if not isinstance(lib, DotnetLib)]
107107

108108
if dotnet_modules:
109-
if os.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
for lib in dotnet_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-
class bdist_wheel_patched(bdist_wheel):
155-
def finalize_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
with open("README.rst", "r") as f:
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)