From 53c3e8e2e265bfe566d42c649f2db7847be77632 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 15 Sep 2021 10:49:07 +0100 Subject: [PATCH] test os dependent path --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 07b9636..62a9727 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,14 @@ from setuptools import setup from Cython.Build import cythonize +import os setup( + if os.name == 'nt': + srcpath= 'src\\helloworld.pyx' + else: + srcpath= 'src/helloworld.pyx' + name="cytest", version="0.0.1", - ext_modules = cythonize("C:\\Users\\jie\\Documents\\ExeTera-master\\cytest\\src\\helloworld.pyx") + ext_modules = cythonize(srcpath) ) \ No newline at end of file