Skip to content

Commit 7901fbf

Browse files
committed
Use relative path
1 parent 2229bfe commit 7901fbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
from build_support.build_ext import build_ext
66

7+
78
src_root = Path(__file__).parent / 'src'
8-
sources = [str(path.absolute()) for path in src_root.rglob('*.c')]
9+
sources = [str(path.relative_to(Path(__file__).parent)) for path in src_root.rglob('*.c')]
910
pyxmlsec = Extension('xmlsec', sources=sources)
1011

1112

0 commit comments

Comments
 (0)