Skip to content

Commit 2e2f177

Browse files
committed
git from github fails during test
1 parent 47c3f43 commit 2e2f177

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ project(compas_libigl)
44
set(CMAKE_CXX_STANDARD 11)
55
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
66

7+
#Python
78
get_filename_component(PYTHON_DIR ${PYTHON_EXECUTABLE} DIRECTORY)
8-
99
if (NOT WIN32)
1010
# on OSX the executable is in "bin"
1111
# so go one more level up
1212
get_filename_component(PYTHON_DIR ${PYTHON_DIR} DIRECTORY)
1313
endif ()
1414

15+
#Python includes
1516
if (WIN32)
1617
set(CPLUS_INCLUDE_PATH "${PYTHON_DIR}/Library/include")
1718
else ()
@@ -37,4 +38,5 @@ option(LIBIGL_WITH_TRIANGLE "Use Triangle" ON)
3738
option(LIBIGL_WITH_CGAL "Use CGAL" ON)
3839
find_package(LIBIGL REQUIRED)
3940

41+
#COMPAS libigl modules
4042
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/modules)

recipe/meta.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@
22
{% set version = "0.1.0" %}
33

44
package:
5-
name: {{ name }}
5+
name: {{ name|lower }}
66
version: {{ version }}
77

88
source:
9+
# git_url: https://github.com/BlockResearchGroup/compas_libigl.git
10+
# git_depth: 1
11+
# url: https://github.com/blockresearchgroup/compas_libigl/archive/alpha-{{ version }}.tar.gz
12+
# sha256: f90b39d88ea003bc2ca7925146babb20320cedebe096e4c276835490be8e10a0
913
path: $RECIPE_DIR/../../
1014

1115
build:
1216
number: 0
13-
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv
17+
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vv"
1418

1519
requirements:
1620
build:
17-
- boost
18-
- cmake
1921
- git
22+
- cmake
23+
- boost
24+
# - cgal
25+
- numpy >=1.15.4
2026
host:
2127
- python
2228
- pip
@@ -29,7 +35,7 @@ test:
2935

3036
about:
3137
home: https://github.com/blockresearchgroup/compas_libigl
32-
license: MIT
38+
license: GPL
3339
summary: 'COMPAS friendly wrappers for libigl functions.'
3440
dev_url: https://github.com/blockresearchgroup/compas_libigl
3541
doc_url: https://blockresearchgroup.github.io/compas_libigl

recipe/sha256.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import os
2+
import hashlib
3+
4+
HERE = os.path.dirname(__file__)
5+
FILE = os.path.join(HERE, '../temp/compas_libigl-alpha-0.1.0.tar.gz')
6+
7+
with open(FILE, 'rb') as f:
8+
data = f.read()
9+
h = hashlib.sha256(data).hexdigest()
10+
11+
print(h)

0 commit comments

Comments
 (0)