File: cmake_debian_options

package info (click to toggle)
obitools 3.0.1~b26%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,788 kB
  • sloc: ansic: 24,299; python: 657; sh: 27; makefile: 20
file content (23 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- obitools.orig/setup.py
+++ obitools/setup.py
@@ -58,9 +58,9 @@
         
         oldwd = os.getcwd()
         os.chdir("build/cobject")
-        install_clibdir_option="-DPYTHONLIB:STRING='%s'" % self.clib_dir
+        install_clibdir_option="-DPYTHONLIB:STRING='%s'" % oldwd
         log.info("Run CMake")
-        subprocess.call(['cmake', install_clibdir_option, '../../src'])
+        subprocess.call(['cmake', install_clibdir_option, "-DCMAKE_BUILD_TYPE=None", "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON", "-DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF", "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON", "-DFETCHCONTENT_FULLY_DISCONNECTED=ON", "-GUnix Makefiles", "-DCMAKE_VERBOSE_MAKEFILE=ON", '../../src'])
         log.info("Compile the shared C library")
         subprocess.call(['make','install'])   # temporary fix but should be in src
         os.chdir(oldwd)
@@ -134,7 +134,7 @@
                                           '-fPIC'
                                          ],
                          extra_link_args=["-Wl,-rpath,"+get_python_lib(), 
-                                          "-L"+get_python_lib()
+                                          "-L"+os.getcwd()
                                          ]
                         )
                 for x in cython_src