Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
T.J. Corona
CMB-SuperBuild
Commits
3d311645
Commit
3d311645
authored
Nov 04, 2015
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smtk: fix python module paths
parent
92837883
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Projects/apple/install_smtk_python_plugin.cmake
Projects/apple/install_smtk_python_plugin.cmake
+3
-3
Projects/install_smtk_python_plugin.cmake
Projects/install_smtk_python_plugin.cmake
+2
-2
No files found.
Projects/apple/install_smtk_python_plugin.cmake
View file @
3d311645
...
...
@@ -8,10 +8,10 @@ file(MAKE_DIRECTORY "${TMP_DIR}/SMTKPlugin")
set
(
plugin_install_dir
${
INSTALL_DIR
}
/Applications/ModelBuilder.app/Contents/Python/smtk
)
file
(
MAKE_DIRECTORY
"
${
plugin_install_dir
}
"
)
set
(
py_files_libs
${
SMTK_BIN_DIR
}
/lib/SMTKCorePython.so
set
(
py_files_libs
${
SMTK_BIN_DIR
}
/lib/
python
${
PYTHON_VERSION
}
/site-packages/smtk/
SMTKCorePython.so
${
SMTK_BIN_DIR
}
/lib/libshiboken-python
${
PYTHON_VERSION
}
.1.2.dylib
${
SMTK_BIN_DIR
}
/lib/python
${
PYTHON_VERSION
}
/site-packages/shiboken.so
${
SMTK_BIN_DIR
}
/lib
exec
/python/site-packages/smtk/simple.py
)
${
SMTK_BIN_DIR
}
/lib/python
${
PYTHON_VERSION
}
/site-packages/smtk/simple.py
)
foreach
(
lib IN LISTS py_files_libs
)
configure_file
(
"
${
lib
}
"
...
...
@@ -29,7 +29,7 @@ execute_process(
execute_process
(
COMMAND
${
CMAKE_CURRENT_LIST_DIR
}
/../remove_code.py
${
SMTK_BIN_DIR
}
/lib
exec
/python/site-packages/smtk/__init__.py
${
SMTK_BIN_DIR
}
/lib/python
${
PYTHON_VERSION
}
/site-packages/smtk/__init__.py
${
TMP_DIR
}
/SMTKPlugin/__init__.py
)
...
...
Projects/install_smtk_python_plugin.cmake
View file @
3d311645
...
...
@@ -27,12 +27,12 @@ set(plugin_install_dir ${SMTK_BIN_DIR}/${PYTHON_INSTALL}/smtk)
file
(
MAKE_DIRECTORY
"
${
plugin_install_dir
}
"
)
if
(
UNIX
)
set
(
PYTHON_COPY_SOURCE_LOC
${
CMAKE_INSTALL_LIBEXECDIR
}
/python/site-packages
)
set
(
PYTHON_COPY_SOURCE_LOC
lib
/python
2.7
/site-packages
)
elseif
(
WIN32
)
set
(
PYTHON_COPY_SOURCE_LOC bin/Lib/site-packages
)
endif
()
set
(
py_files_libs
${
SMTK_BIN_DIR
}
/
lib
/smtkCorePython.
${
SHARED_LIBRARY_SUFFIX
}
set
(
py_files_libs
${
SMTK_BIN_DIR
}
/
${
PYTHON_SITE
}
/smtk
/smtkCorePython.
${
SHARED_LIBRARY_SUFFIX
}
${
SMTK_BIN_DIR
}
/
${
LIB_SHIBOKEN_PY
}
${
SMTK_BIN_DIR
}
/
${
PYTHON_SITE
}
/shiboken.
${
SHARED_LIBRARY_SUFFIX
}
${
SMTK_BIN_DIR
}
/
${
PYTHON_COPY_SOURCE_LOC
}
/smtk/simple.py
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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