-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial feedstock commit with conda-smithy 3.7.8.
- Loading branch information
Travis-CI on github.com/conda-forge/staged-recipes
committed
Aug 11, 2020
0 parents
commit 7f7984d
Showing
6 changed files
with
187 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
mkdir build | ||
if errorlevel 1 exit 1 | ||
|
||
cd build | ||
|
||
::Configure | ||
cmake ^ | ||
-G "NMake Makefiles" ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DPYTHON_EXECUTABLE=%PYTHON% ^ | ||
-DPYTHON_SITELIB=%SP_DIR% ^ | ||
%SRC_DIR% | ||
if errorlevel 1 exit 1 | ||
|
||
:: Install | ||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
mkdir build | ||
cd build | ||
|
||
cmake .. \ | ||
-DCMAKE_PREFIX_PATH=$PREFIX \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DCMAKE_INSTALL_LIBDIR=lib \ | ||
-DPYTHON_EXECUTABLE=$PYTHON | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% set name = "example-robot-data" %} | ||
{% set version = "3.4.2" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/Gepetto/{{ name }}/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.gz | ||
sha256: 6575453bd64f34f6adc8a6f1babf8351cc3019fe3f1624213d4b58db48592719 | ||
patches: | ||
- patches/0001-cmake-sync-submodule.patch | ||
- patches/0002-cmake-fix-Windows-issue.patch | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name, max_pin='x.x') }} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('cxx') }} # [not win] | ||
- vs2017_win-64 # [win64] | ||
- vs2017_win-32 # [win32] | ||
- cmake | ||
- make # [not win] | ||
host: | ||
- pinocchio | ||
- python | ||
run: | ||
- pinocchio | ||
- python | ||
test: | ||
requires: | ||
- pkg-config | ||
commands: | ||
- pkg-config --modversion {{ name }} | ||
imports: | ||
- example_robot_data | ||
|
||
about: | ||
home: http://github.com/Gepetto/example-robot-data | ||
license: BSD-3-Clause | ||
license_family: BSD | ||
license_file: LICENSE | ||
summary: Set of robot URDFs for benchmarking and developed examples | ||
dev_url: https://github.com/Gepetto/example-robot-data | ||
|
||
extra: | ||
recipe-maintainers: | ||
- jcarpent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
From d49190aa5edb7104924f4ded84126b5efa7b5bec Mon Sep 17 00:00:00 2001 | ||
From: Justin Carpentier <justin.carpentier@inria.fr> | ||
Date: Tue, 23 Jun 2020 17:40:00 +0200 | ||
Subject: [PATCH 1/2] cmake: sync submodule | ||
|
||
--- | ||
CMakeLists.txt | 5 ++++- | ||
cmake | 2 +- | ||
2 files changed, 5 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 7f7e729..cbb1f5a 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -10,6 +10,9 @@ SET(PROJECT_URL https://github.com/${PROJECT_ORG}/${PROJECT_NAME}) | ||
OPTION(BUILD_PYTHON_INTERFACE "Build the python unit tests and helpers" ON) | ||
OPTION(INSTALL_PYTHON_INTERFACE_ONLY "Install *ONLY* the python interface" OFF) | ||
|
||
+MESSAGE(STATUS "python: ${PYTHON_SITELIB}") | ||
+#STRING(REPLACE "\\" "/" TEST ${PYTHON_SITELIB}) | ||
+#MESSAGE(STATUS "python: ${TEST}") | ||
# Project configuration | ||
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY) | ||
SET(PROJECT_USE_CMAKE_EXPORT TRUE) | ||
@@ -31,8 +34,8 @@ COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX) | ||
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS}) | ||
|
||
IF(BUILD_PYTHON_INTERFACE) | ||
- ADD_PROJECT_DEPENDENCY(pinocchio) | ||
FINDPYTHON() | ||
+ ADD_PROJECT_DEPENDENCY(pinocchio) | ||
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME}) | ||
ADD_SUBDIRECTORY(python) | ||
IF(BUILD_TESTING) | ||
Submodule cmake d12c55e...d63b949: | ||
diff --git a/cmake/python.cmake b/cmake/python.cmake | ||
index 12ef0d6..3286da3 100644 | ||
--- a/cmake/python.cmake | ||
+++ b/cmake/python.cmake | ||
@@ -203,6 +203,12 @@ MACRO(FINDPYTHON) | ||
IF(PYTHON_PACKAGES_DIR) | ||
STRING(REGEX REPLACE "(site-packages|dist-packages)" "${PYTHON_PACKAGES_DIR}" PYTHON_SITELIB "${PYTHON_SITELIB}") | ||
ENDIF(PYTHON_PACKAGES_DIR) | ||
+ ELSE(NOT PYTHON_SITELIB) | ||
+ IF(WIN32) | ||
+ STRING(REPLACE "\\" "/" PYTHON_SITELIB ${PYTHON_SITELIB}) | ||
+ MESSAGE(STATUS "python: ${PYTHON_SITELIB}") | ||
+ SET(PYTHON_SITELIB ${PYTHON_SITELIB} PARENT_SCOPE) | ||
+ ENDIF(WIN32) | ||
ENDIF(NOT PYTHON_SITELIB) | ||
|
||
MESSAGE(STATUS "Python site lib: ${PYTHON_SITELIB}") | ||
@@ -381,7 +387,7 @@ MACRO(PYTHON_INSTALL_ON_SITE MODULE FILE) | ||
MESSAGE(FATAL_ERROR "Python has not been found.") | ||
ENDIF() | ||
|
||
- PYTHON_INSTALL("${MODULE}" "${FILE}" "${PYTHON_SITELIB}") | ||
+ PYTHON_INSTALL("${MODULE}" "${FILE}" ${PYTHON_SITELIB}) | ||
|
||
ENDMACRO() | ||
|
||
diff --git a/cmake/test.cmake b/cmake/test.cmake | ||
index 1ab74cd..852c2d7 100644 | ||
--- a/cmake/test.cmake | ||
+++ b/cmake/test.cmake | ||
@@ -107,9 +107,9 @@ MACRO(ADD_PYTHON_UNIT_TEST NAME SOURCE) | ||
SET(MODULES "${ARGN}") # ARGN is not a variable | ||
FOREACH(MODULE_PATH IN LISTS MODULES) | ||
LIST(APPEND PYTHONPATH "${CMAKE_BINARY_DIR}/${MODULE_PATH}") | ||
- IF(WIN32) | ||
+ IF(CMAKE_GENERATOR MATCHES "Visual Studio") | ||
LIST(APPEND PYTHONPATH "${CMAKE_BINARY_DIR}/${MODULE_PATH}/$<CONFIG>") | ||
- ENDIF(WIN32) | ||
+ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio") | ||
ENDFOREACH(MODULE_PATH IN LISTS MODULES) | ||
|
||
IF(DEFINED ENV{PYTHONPATH}) | ||
-- | ||
2.21.1 (Apple Git-122.3) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 1c02745cb8e3d1eb34218228a18c791e7d066712 Mon Sep 17 00:00:00 2001 | ||
From: Justin Carpentier <justin.carpentier@inria.fr> | ||
Date: Tue, 23 Jun 2020 17:40:34 +0200 | ||
Subject: [PATCH 2/2] cmake: fix Windows issue | ||
|
||
--- | ||
CMakeLists.txt | 3 --- | ||
1 file changed, 3 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index cbb1f5a..2dae265 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -10,9 +10,6 @@ SET(PROJECT_URL https://github.com/${PROJECT_ORG}/${PROJECT_NAME}) | ||
OPTION(BUILD_PYTHON_INTERFACE "Build the python unit tests and helpers" ON) | ||
OPTION(INSTALL_PYTHON_INTERFACE_ONLY "Install *ONLY* the python interface" OFF) | ||
|
||
-MESSAGE(STATUS "python: ${PYTHON_SITELIB}") | ||
-#STRING(REPLACE "\\" "/" TEST ${PYTHON_SITELIB}) | ||
-#MESSAGE(STATUS "python: ${TEST}") | ||
# Project configuration | ||
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY) | ||
SET(PROJECT_USE_CMAKE_EXPORT TRUE) | ||
-- | ||
2.21.1 (Apple Git-122.3) | ||
|