Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
pinocchio
Commits
d0e6bb5c
Commit
d0e6bb5c
authored
Sep 28, 2016
by
jcarpent
Browse files
[Python] Move Python scripts to a dedicated directory
parent
f4f94a0e
Changes
7
Hide whitespace changes
Inline
Side-by-side
bindings/python/CMakeLists.txt
View file @
d0e6bb5c
...
...
@@ -158,10 +158,10 @@ IF(APPLE)
ENDIF
(
APPLE
)
SET_TARGET_PROPERTIES
(
${
PYWRAP
}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bindings/python/
lib
"
)
LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
"
)
INSTALL
(
FILES
"
${
CMAKE_BINARY_DIR
}
/bindings/python/
lib
/lib
${
PYWRAP
}
.so"
"
${
CMAKE_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/lib
${
PYWRAP
}
.so"
DESTINATION
${${
PYWRAP
}
_INSTALL_DIR
}
)
# --- INSTALL SCRIPTS
...
...
@@ -177,27 +177,28 @@ SET(PYTHON_FILES
FOREACH
(
python
${
PYTHON_FILES
}
)
GET_FILENAME_COMPONENT
(
pythonFile
${
python
}
NAME
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_COMMAND
}
-E
${
LINK
}
${${
PROJECT_NAME
}
_SOURCE_DIR
}
/bindings/python/
${
python
}
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
pythonFile
}
)
${${
PROJECT_NAME
}
_SOURCE_DIR
}
/bindings/python/
scripts/
${
python
}
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
)
# Generate pyc file
EXECUTE_PROCESS
(
COMMAND
${
PYTHON_EXECUTABLE
}
-m py_compile
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
)
# Tag pyc file as generated.
SET_SOURCE_FILES_PROPERTIES
(
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
pythonFile
}
c"
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
c"
PROPERTIES GENERATED TRUE
)
EXECUTE_PROCESS
(
COMMAND
${
PYTHON_EXECUTABLE
}
-m py_compile
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
pythonFile
}
)
# Clean generated files.
SET_PROPERTY
(
DIRECTORY APPEND PROPERTY
ADDITIONAL_MAKE_CLEAN_FILES
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
pythonFile
}
c"
)
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
c"
)
INSTALL
(
FILES
"
${${
PROJECT_NAME
}
_SOURCE_DIR
}
/bindings/python/
${
python
}
"
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
pythonFile
}
c"
"
${${
PROJECT_NAME
}
_SOURCE_DIR
}
/bindings/python/
scripts/
${
python
}
"
"
${${
PROJECT_NAME
}
_BINARY_DIR
}
/bindings/python/
${
PROJECT_NAME
}
/
${
pythonFile
}
c"
DESTINATION
${${
PYWRAP
}
_INSTALL_DIR
}
)
ENDFOREACH
(
python
)
...
...
bindings/python/__init__.py
→
bindings/python/
scripts/
__init__.py
View file @
d0e6bb5c
File moved
bindings/python/explog.py
→
bindings/python/
scripts/
explog.py
View file @
d0e6bb5c
File moved
bindings/python/robot_wrapper.py
→
bindings/python/
scripts/
robot_wrapper.py
View file @
d0e6bb5c
File moved
bindings/python/romeo_wrapper.py
→
bindings/python/
scripts/
romeo_wrapper.py
View file @
d0e6bb5c
File moved
bindings/python/rpy.py
→
bindings/python/
scripts/
rpy.py
View file @
d0e6bb5c
File moved
bindings/python/utils.py
→
bindings/python/
scripts/
utils.py
View file @
d0e6bb5c
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment