We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05953fa commit 5b96076Copy full SHA for 5b96076
1 file changed
python/_build_backend/__init__.py
@@ -36,6 +36,7 @@
36
import os
37
from pathlib import Path
38
import shutil
39
+import sys
40
41
from scikit_build_core.build import * # noqa: F401,F403
42
from scikit_build_core.build import build_sdist as scikit_build_sdist
@@ -55,11 +56,12 @@ def prepare_licenses():
55
56
try:
57
yield
58
finally:
- # Copy back the original symlinks so git status is clean.
59
- for name in LICENSE_FILES:
60
- filepath = PYTHON_DIR / name
61
- os.unlink(filepath)
62
- os.symlink(f"../{name}", filepath)
+ if sys.platform != "win32":
+ # Copy back the original symlinks so git status is clean.
+ for name in LICENSE_FILES:
+ filepath = PYTHON_DIR / name
63
+ os.unlink(filepath)
64
+ os.symlink(f"../{name}", filepath)
65
66
67
def build_sdist(sdist_directory, config_settings=None):
0 commit comments