Skip to content

Commit 4c2e7c4

Browse files
committed
minor tweak to the setup script
1 parent 4afa3db commit 4c2e7c4

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

recipe/meta.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set name = "compas_libigl" %}
22
{% set version = "0.1.2" %}
3-
{% set hash = "613a0d23f25e27dbe67b113f623154be31c0786e191c19a8d9e7b1f3480140af" %}
3+
{% set hash = "e411b45e1023a7826c571ecd63a619722631f4a8cdf0445b04a77c6e6147f826" %}
44
{% set pybind11_version = "2.5.0" %}
55
{% set pybind11_hash = "97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504" %}
66
{% set libigl_version = "2.2.0" %}
@@ -26,16 +26,20 @@ source:
2626
build:
2727
number: 0
2828
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv"
29+
missing_dso_whitelist:
30+
- libSystem.B.dylib
2931

3032
requirements:
3133
build:
34+
- {{ compiler('c') }}
35+
- {{ compiler('cxx') }}
3236
- git
3337
- cmake
34-
- boost
35-
- eigen
3638
host:
3739
- python
3840
- pip
41+
- boost
42+
- eigen
3943
run:
4044
- COMPAS >=0.15.5
4145

recipe/sha256.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# FILE = os.path.join(HERE, '/Users/vanmelet/Downloads/pybind11-2.5.0.tar.gz')
66
# FILE = '/Users/vanmelet/Downloads/pybind11-2.5.0.tar.gz'
77
# FILE = '/Users/vanmelet/Downloads/libigl-2.2.0.tar.gz'
8-
FILE = '/Users/vanmelet/Downloads/compas_libigl-0.1.1.tar.gz'
8+
FILE = '/Users/vanmelet/Downloads/compas_libigl-0.1.2.tar.gz'
99

1010
with open(FILE, 'rb') as f:
1111
data = f.read()

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ def build_extension(self, ext):
4949
extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
5050
cmake_args = [
5151
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
52-
'-DPYTHON_EXECUTABLE=' + sys.executable]
53-
54-
# For MacOS.
55-
# During compiling stage, the python module always links to a temporary generated library which is going to be destroyed.
56-
# Then importing the final installed module will return a link error
57-
# The following commands will force the module to look up the its dynmaic linked library in the same folder
58-
# '-DCMAKE_INSTALL_RPATH=@loader_path',
59-
# '-DCMAKE_INSTALL_RPATH=$ORIGIN',
60-
# '-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON',
61-
# '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF'
52+
'-DPYTHON_EXECUTABLE=' + sys.executable,
53+
# For MacOS.
54+
# During compiling stage, the python module always links to a temporary generated library which is going to be destroyed.
55+
# Then importing the final installed module will return a link error
56+
# The following commands will force the module to look up the its dynmaic linked library in the same folder
57+
'-DCMAKE_INSTALL_RPATH=@loader_path',
58+
'-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON',
59+
'-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF'
60+
]
61+
6262

6363
cfg = 'Debug' if self.debug else 'Release'
6464
build_args = ['--config', cfg]

0 commit comments

Comments
 (0)