Commit f2360777 authored by Robert Bradshaw's avatar Robert Bradshaw

Remove use of symlink on Windows.

parent 547102ea
PYTHON -c "import os; os.symlink('subdir', 'fake')" PYTHON symlink_or_copy.py subdir fake
PYTHON setup.py build_ext --inplace PYTHON setup.py build_ext --inplace
PYTHON -c "import a" PYTHON -c "import a"
PYTHON -c "import pkg.b" PYTHON -c "import pkg.b"
PYTHON check_paths.py PYTHON check_paths.py
######## symlink_or_copy.py ########
import platform
import sys
if platform.system() == "Windows":
import shutil
shutil.copytree(sys.argv[1], sys.argv[2])
else:
import os
os.symlink(sys.argv[1], sys.argv[2])
######## setup.py ######## ######## setup.py ########
...@@ -21,7 +32,7 @@ setup( ...@@ -21,7 +32,7 @@ setup(
cdef extern from "helper.h": cdef extern from "helper.h":
int value1 int value1
cdef extern from "subdir/helper.h": cdef extern from "subdir/helper.h":
int value2 int value2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment