Skip to content

Commit ed1a730

Browse files
committed
1 parent 208a093 commit ed1a730

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

projects/pypqc-cffi-bindings-falcon/setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
from setuptools import setup
22

33
from pathlib import Path
4+
import sys
5+
if sys.platform == 'win32':
6+
import subprocess
7+
# For some demented reason, Git doesn't check out
8+
# intra-repo directory symlinks as directory junctions
9+
# on Windows in non-Developer mode;
10+
# this is a workaround for that behavior
11+
lib_p = Path(__file__).parent / 'lib'
12+
if lib_p.is_file():
13+
lib_p_target = Path(lib_p.read_text())
14+
lib_p.unlink()
15+
subprocess.check_call(["MKLINK", "/J", lib_p, lib_p_target], shell=True)
416

517
setup(
618
cffi_modules=[

projects/pypqc-cffi-bindings-hqc/setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
from setuptools import setup
22

33
from pathlib import Path
4+
import sys
5+
if sys.platform == 'win32':
6+
import subprocess
7+
# For some demented reason, Git doesn't check out
8+
# intra-repo directory symlinks as directory junctions
9+
# on Windows in non-Developer mode;
10+
# this is a workaround for that behavior
11+
lib_p = Path(__file__).parent / 'lib'
12+
if lib_p.is_file():
13+
lib_p_target = Path(lib_p.read_text())
14+
lib_p.unlink()
15+
subprocess.check_call(["MKLINK", "/J", lib_p, lib_p_target], shell=True)
416

517
setup(
618
cffi_modules=[

projects/pypqc-cffi-bindings-kyber/setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
from setuptools import setup
22

33
from pathlib import Path
4+
import sys
5+
if sys.platform == 'win32':
6+
import subprocess
7+
# For some demented reason, Git doesn't check out
8+
# intra-repo directory symlinks as directory junctions
9+
# on Windows in non-Developer mode;
10+
# this is a workaround for that behavior
11+
lib_p = Path(__file__).parent / 'lib'
12+
if lib_p.is_file():
13+
lib_p_target = Path(lib_p.read_text())
14+
lib_p.unlink()
15+
subprocess.check_call(["MKLINK", "/J", lib_p, lib_p_target], shell=True)
416

517
setup(
618
cffi_modules=[

projects/pypqc-cffi-bindings-libre/setup.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
from setuptools import setup
22

33
from pathlib import Path
4+
import sys
5+
if sys.platform == 'win32':
6+
import subprocess
7+
# For some demented reason, Git doesn't check out
8+
# intra-repo directory symlinks as directory junctions
9+
# on Windows in non-Developer mode;
10+
# this is a workaround for that behavior
11+
lib_p = Path(__file__).parent / 'lib'
12+
if lib_p.is_file():
13+
lib_p_target = Path(lib_p.read_text())
14+
lib_p.unlink()
15+
subprocess.check_call(["MKLINK", "/J", lib_p, lib_p_target], shell=True)
416

517
setup(
618
cffi_modules=[

0 commit comments

Comments
 (0)