Commit eaa695fa authored by Matt Clarkson's avatar Matt Clarkson

Issue #1: Ensure Windows build is on fixed, shorter, path, under gitlab-runner.

parent 514a88f8
Pipeline #4083 canceled with stages
in 8 minutes and 33 seconds
......@@ -45,7 +45,14 @@ class CMakeExtension(Extension):
Extension.__init__(self, name, sources=[])
self.source_dir = os.path.abspath(sourcedir)
self.parent_dir = os.path.dirname(self.source_dir)
self.super_build_dir = os.path.join(self.parent_dir, 'scikit-surgerygpucpp-sb')
if platform.system() == "Windows":
# On Windows, due to path length restrictions, we have to hard-code shorter paths.
self.super_build_dir = os.path.normpath('C:\gitlab-runner\scikit-surgerygpucpp-sb')
# On Linux, we can build next to source folder
self.super_build_dir = os.path.join(self.parent_dir, 'scikit-surgerygpucpp-sb')
self.build_dir = os.path.join(self.super_build_dir, 'SKSURGERYGPUCPP-build')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment