Ensure cfg is removed, and add a message
This commit is contained in:
@@ -174,6 +174,8 @@ def setup_setuptools_cross_compile(
|
|||||||
f"Unable to configure setuptools for cross-compiling because {distutils_cfg} is a directory"
|
f"Unable to configure setuptools for cross-compiling because {distutils_cfg} is a directory"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
else:
|
||||||
|
atexit.register(lambda: distutils_cfg.unlink)
|
||||||
|
|
||||||
# Ensure our additional import libraries are made available, and explicitly
|
# Ensure our additional import libraries are made available, and explicitly
|
||||||
# set the platform name
|
# set the platform name
|
||||||
@@ -183,6 +185,8 @@ def setup_setuptools_cross_compile(
|
|||||||
distutils_cfg.write_text(
|
distutils_cfg.write_text(
|
||||||
textwrap.dedent(
|
textwrap.dedent(
|
||||||
f"""\
|
f"""\
|
||||||
|
# I am a temporary configuration file generated by cibuildwheel.
|
||||||
|
# Please remove me or I will likely break your other builds.
|
||||||
[build]
|
[build]
|
||||||
plat_name={plat_name}
|
plat_name={plat_name}
|
||||||
[build_ext]
|
[build_ext]
|
||||||
|
|||||||
Reference in New Issue
Block a user