Blob Blame History Raw
diff -up src/setup.py.orig src/setup.py
--- src/setup.py.orig	2018-08-29 08:35:19.955079610 -0600
+++ src/setup.py	2019-01-18 11:28:06.915666783 -0700
@@ -386,6 +386,9 @@ class sage_build_cython(Command):
         with open(self._version_file, 'w') as f:
             f.write(self._version_stamp)
 
+        # Remove buildroot paths from the generated files
+        subprocess.check_call(["find", "build/cythonized/sage", "-type", "f", "-exec", "sed", "-i", "s|@@BUILDROOT@@||g", "{}", "+"])
+
         # Finally, copy relevant cythonized files from build/cythonized
         # tree into the build-lib tree
         for (dst_dir, src_files) in self.get_cythonized_package_files():