Skip to content

Commit a914006

Browse files
committed
Merge pull request #6 in UPSP/upsp-proc from development to master
Squashed commit of the following: commit 3263811 Merge: a71db42 608ad21 Author: Shaw-Lecerf, Marc (ARC-AOX) <marc.a.shaw-lecerf@nasa.gov> Date: Thu Jan 12 11:24:31 2023 -0800 Merge pull request #5 in UPSP/upsp-proc from UPSP-704 to development * commit '608ad219c3a90f272889a80e6a4662602ad5be62': UPSP-704: Fix equation references UPSP-704: Make flowcharts clickable to see full size UPSP-704: Fix up doc string formatting following merge UPSP-704: PR comment np.float -> float Added input check to external_calibrate_two_stage_from_wtd UPSP-704: excal fix (read_json->read_test_config) UPSP-704: author -> authors bugfix UPSP-704: Added .flake8 UPSP-704: Sphinx docs: index.rst *.mov -> *.png UPSP-704: Sphinx docs: sphinx.ext.viewcode UPSP-704: Docstring fixups Sphinx docs updates Sphinx docs updates Sphinx docs updates Sphinx docs updates Sphinx docs updates Sphinx doc updates current documentation MD -> RST (w/ pandoc) Ported krlyons initial sphinx doc build system commit 608ad21 Author: Kenneth Lyons <kenneth.r.lyons@nasa.gov> Date: Thu Jan 12 10:07:36 2023 -0800 UPSP-704: Fix equation references commit 26e4ac5 Author: Kenneth Lyons <kenneth.r.lyons@nasa.gov> Date: Thu Jan 12 10:07:04 2023 -0800 UPSP-704: Make flowcharts clickable to see full size commit 2a851ab Author: Kenneth Lyons <kenneth.r.lyons@nasa.gov> Date: Thu Jan 12 09:49:45 2023 -0800 UPSP-704: Fix up doc string formatting following merge commit eba274a Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Jan 10 17:26:31 2023 -0800 UPSP-704: PR comment np.float -> float commit 0df9afd Author: Nicholas Califano <ncalifan@pfe22.nas.nasa.gov> Date: Tue Jan 10 14:55:42 2023 -0800 Added input check to external_calibrate_two_stage_from_wtd commit bd18d77 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Jan 10 09:08:24 2023 -0800 UPSP-704: excal fix (read_json->read_test_config) commit ecf8bba Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 20:18:44 2023 -0500 UPSP-704: author -> authors bugfix commit 2e8cbd3 Merge: f591145 a71db42 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 16:36:21 2023 -0500 Merge branch 'development' into UPSP-704 Conflicts: python/upsp/cam_cal_utils/photogrammetry.py python/upsp/cam_cal_utils/visibility.py commit a71db42 Merge: e1512a1 0056c6c Author: Shaw-Lecerf, Marc (ARC-AOX) <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 13:03:21 2023 -0800 Merge pull request #3 in UPSP/upsp-proc from UPSP-851 to development * commit '0056c6ccce768d4c361c82d1ffd22ca3a0801680': UPSP-851: update .gitignore UPSP-851: address PR comments UPSP-853: batch processing: archive src JSONs UPSP-852: deprecate unity demo app utilities Batch processing updates for pip pkg Migrate deps from setup.py -> pyproject.toml Add setuputils_scm to build sys; add LICENSE.txt commit 0056c6c Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 13:00:09 2023 -0800 UPSP-851: update .gitignore commit 51736bc Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 12:58:28 2023 -0800 UPSP-851: address PR comments commit 61cb109 Merge: 43cc47a e1512a1 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 10:54:14 2023 -0800 Merge branch 'development' into UPSP-851 commit f591145 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 13:25:23 2023 -0500 UPSP-704: Added .flake8 commit 4e2dde7 Merge: a9d4f1b e1512a1 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Jan 9 12:43:56 2023 -0500 Merge branch 'development' into UPSP-704 Conflicts: python/upsp/cam_cal_utils/camera_tunnel_calibrate.py python/upsp/cam_cal_utils/external_calibrate.py python/upsp/cam_cal_utils/img_utils.py python/upsp/cam_cal_utils/internal_calibration.py python/upsp/cam_cal_utils/parsers.py python/upsp/cam_cal_utils/photogrammetry.py python/upsp/cam_cal_utils/target_bumping.py python/upsp/cam_cal_utils/visibility.py python/upsp/intensity_mapping/node_pixel_mapping.py python/upsp/intensity_mapping/patching.py python/upsp/target_localization/gaussian_fitting_methods.py commit e1512a1 Merge: f2ed962 748f924 Author: Califano, Nicholas W. (ARC-AOX)[Metis Technology Solutions] <nicholas.w.califano@nasa.gov> Date: Thu Jan 5 16:44:16 2023 -0800 Merge pull request #4 in UPSP/upsp-proc from UPSP-856 to development * commit '748f9240c90da31ae859a2fee73a59f07e1ea488': Copied changes from main upsp repo commit 748f924 Author: Nicholas Califano <ncalifan@pfe23.nas.nasa.gov> Date: Wed Jan 4 12:05:21 2023 -0800 Copied changes from main upsp repo commit a9d4f1b Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Thu Dec 22 14:00:41 2022 -0500 UPSP-704: Sphinx docs: index.rst *.mov -> *.png Video isn't working reliably. Readers are provided with a hyperlink to download the video, and a screenshot is used instead in the HTML docs. commit 95f6a28 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Thu Dec 22 13:51:28 2022 -0500 UPSP-704: Sphinx docs: sphinx.ext.viewcode commit 07ac35d Author: Kenneth Lyons <kenneth.r.lyons@nasa.gov> Date: Thu Dec 22 10:27:01 2022 -0800 UPSP-704: Docstring fixups - Make all docstrings numpydoc style compliant - Use type preprocessing and intersphinx - Make references work commit 43cc47a Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Dec 20 07:44:44 2022 -0800 UPSP-853: batch processing: archive src JSONs Copy the original, user-provided JSON files to 02_configuration folder. This is a good practice to improve repeatability, it's easy to lose track of them otherwise. commit cb052d3 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Dec 20 06:05:09 2022 -0800 UPSP-852: deprecate unity demo app utilities commit 1cd8bd1 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Dec 19 12:12:47 2022 -0800 Batch processing updates for pip pkg - hard dep on opencv-python-headless=4.5.2.54 (some function signature changes w/ 4.6.0 we haven't updated yet) - remove some autogenerated scripts from batch processing - run-unity-export: may deprecate this in the future - step+render_images: does not currently work as we removed the miniwall.py (demo code) interface. Need to rewrite this step, maybe make use of the PyTecplot API commit d07452b Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Dec 19 10:45:47 2022 -0800 Migrate deps from setup.py -> pyproject.toml - Requires setuputils >= 61 bump - Made this change due to warning when running "pip wheel" after migrating other stuff to the pyproject.toml. commit 70bcf3e Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Mon Dec 19 10:39:57 2022 -0800 Add setuputils_scm to build sys; add LICENSE.txt Latest usage of setuputils_scm relies on the pyproject.toml, which encouraged me to migrate some other pkg metadata like the project name + description. Also added the license file (NOSA 1.3). commit e819bf9 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Sat Dec 17 01:46:55 2022 -0500 Sphinx docs updates Embedded video of SLS AUAT pressure time history animation (from public NTRS archive, https://ntrs.nasa.gov/citations/20220005639). The NTRS entry has a *.pptx file available for download. The embedded video is loaded by a simple Javascript that grabs the PPT file, extracts it (*.pptx is essentially just a ZIP file), grabs the *.mov file out of the file tree, and loads it into an HTML <video> element. This is embedded in an <iframe> in the Sphinx documentation. A bit hacky but looks pretty decent on my system. (NOTE: does not load on Safari, but works on Chrome and Firefox). (Maybe we should just display a still image if the video fails to load ... need to update the JS to do that) commit a941313 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Fri Dec 16 17:18:21 2022 -0500 Sphinx docs updates - Added refs.bib, sphinxcontrib bibliography - Split out more pages from user-manual commit 9565b2a Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Fri Dec 16 16:35:17 2022 -0500 Sphinx docs updates Quick Start migrated to its own section + heavy updates Terminology own section Installation own section + cleanup commit e644024 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Fri Dec 16 09:27:43 2022 -0500 Sphinx docs updates - file-formats.rst - converted grid- to list-table - significant cleanup of hyperlinks, verbiage - made some stuff more "public-friendly" (eg a bit more context in the WTD file description, link to public UPWT docs on nasa.gov) commit 5c67816 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Thu Dec 15 19:58:04 2022 -0500 Sphinx docs updates - autosectionlabel extension - cleanup swdd.rst cross-refs - spellcheck + grammar commit f2ed962 Merge: 6cddf00 70ee462 Author: Shaw-Lecerf, Marc (ARC-AOX) <marc.a.shaw-lecerf@nasa.gov> Date: Thu Dec 15 16:46:24 2022 -0800 Merge pull request #2 in UPSP/upsp-proc from UPSP-848 to development * commit '70ee462bc7dce75bb1e44a8730bde31b536b7eea': scikit-build updates. Works after some RPATH hacks Ported over krlyons initial skbuild impl commit 99d5ad4 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Dec 13 16:49:10 2022 -0500 Sphinx doc updates commit ec2ca31 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Dec 13 10:26:31 2022 -0500 current documentation MD -> RST (w/ pandoc) commit f60442d Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Tue Dec 13 09:42:48 2022 -0500 Ported krlyons initial sphinx doc build system commit 70ee462 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Thu Dec 15 12:25:13 2022 -0800 scikit-build updates. Works after some RPATH hacks commit 77491b3 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Fri Dec 9 14:56:46 2022 -0500 Ported over krlyons initial skbuild impl commit 6cddf00 Merge: 10c8f1c ee84c74 Author: Shaw-Lecerf, Marc (ARC-AOX) <marc.a.shaw-lecerf@nasa.gov> Date: Wed Oct 26 12:32:55 2022 -0700 Merge pull request #1 in UPSP/upsp-proc from UPSP-842 to development * commit 'ee84c74e50ba605f66a18902904512bf45534545': UPSP-842: Update INSTALL tgt (missing *.py files) commit ee84c74 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Wed Oct 26 11:43:35 2022 -0700 UPSP-842: Update INSTALL tgt (missing *.py files) commit 10c8f1c Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Fri Oct 7 17:32:10 2022 -0700 Migrated second round of camera-to-tunnel updates commit e381963 Author: Marc Shaw-Lecerf <marc.a.shaw-lecerf@nasa.gov> Date: Thu Aug 18 10:47:59 2022 -0700 Migrated latest camera/tunnel calibration changes SHA e5ef37c74fa
1 parent db24876 commit a914006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+7966
-3297
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 88

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ __pycache__
22
*.pyc
33
*.egg-info
44

5+
# scikit-build artifacts
6+
_skbuild/
7+
python/upsp/_version.py
8+

CMakeLists.txt

Lines changed: 54 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,50 @@ cmake_minimum_required(VERSION 3.20)
22
project(upsp)
33
cmake_policy(SET CMP0074 NEW)
44

5-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
6-
7-
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
8-
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True)
95
set(CMAKE_CXX_STANDARD 17)
106
set(CMAKE_CXX_STANDARD_REQUIRED ON)
117
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
128

13-
# Direct inclusion of open-source tools for
14-
# integrating pandoc w/ CMake, copied into cmake/Modules. Ref:
15-
# https://github.com/jeetsukumaran/cmake-pandocology/
16-
# (SHA: 10900f9aec4431b504fa8979576f950533cf20d9)
17-
include(pandocology)
9+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
1810

11+
# This ensures any link paths used at build time are preserved in
12+
# the installed targets. This supports cases where the user has
13+
# supplied third-party libraries in non-system locations (for
14+
# instance, if making use of a local vcpkg setup)
15+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
16+
set(CMAKE_SKIP_BUILD_RPATH FALSE)
17+
18+
if (DEFINED SKBUILD)
19+
# prevent an unused variable warning
20+
set(ignoreMe "${SKBUILD}")
21+
22+
# TODO this is ugly but it works for now.
23+
#
24+
# When the project is built by scikit-build for deployment as a
25+
# Python package, libraries are dropped in the lib/ folder and there's
26+
# multiple consumers of those libraries that need to resolve them at runtime:
27+
#
28+
# - Executables, installed to bin/, need to look in $ORIGIN/../lib
29+
# - Python extension modules, installed to lib/pythonX/site-packages/upsp,
30+
# need to look in $ORIGIN/../../..
31+
#
32+
# Lastly, there's some build-tree-only artifacts (eg gtest unit tests),
33+
# those need to look in their own build directory ($ORIGIN).
34+
#
35+
# We could do this on a per-target basis but I'd rather just leave
36+
# the hack in one spot for now instead of being peppered all over
37+
# this build file.
38+
#
39+
# A "better/cleaner" example of this setup can be found here (although
40+
# I don't think it handles all the use cases I listed above, it's
41+
# a small sample project):
42+
#
43+
# https://github.com/scikit-build/scikit-build-sample-projects/blob/master/projects/hello-cmake-package/CMakeLists.txt#L92
44+
#
45+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
46+
set(CMAKE_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/../lib:\$ORIGIN/../../../")
47+
endif()
48+
1949
find_package(Eigen3 CONFIG REQUIRED)
2050
find_package(Boost REQUIRED)
2151
find_package(OpenCV CONFIG REQUIRED COMPONENTS core imgproc imgcodecs calib3d videoio tracking)
@@ -26,14 +56,16 @@ find_package(pybind11 REQUIRED)
2656
find_library(LIBRT rt)
2757
find_package(hdf5 CONFIG REQUIRED)
2858
find_package(IlmBase CONFIG REQUIRED)
59+
find_package(PythonExtensions)
60+
61+
include_directories(cpp/include)
2962

3063
pybind11_add_module(cine cpp/pybind11/cine.cpp)
3164
target_link_libraries(cine PRIVATE upsp_video)
65+
3266
pybind11_add_module(raycast cpp/pybind11/raycast.cpp)
3367
target_link_libraries(raycast PRIVATE upsp_kdtree)
3468

35-
include_directories(cpp/include)
36-
3769
add_library(
3870
upsp_video
3971
SHARED
@@ -121,9 +153,6 @@ add_executable(upsp_matrix_transpose cpp/exec/upsp_matrix_transpose.cpp)
121153
target_link_libraries(upsp_matrix_transpose MPI::MPI_CXX)
122154
target_link_libraries(upsp_matrix_transpose OpenMP::OpenMP_CXX)
123155

124-
125-
# GTest::gmock GTest::gtest GTest::gmock_main GTest::gtest_main
126-
# TODO could automate smoke tests and gtest unit tests leveraging CTest
127156
find_package(GTest CONFIG REQUIRED)
128157
upsp_add_executable(
129158
run_tests
@@ -143,91 +172,6 @@ target_link_libraries(run_tests GTest::gtest GTest::gtest_main)
143172
target_link_libraries(run_tests OpenMP::OpenMP_CXX)
144173
target_link_libraries(run_tests hdf5::hdf5_cpp-shared hdf5::hdf5_hl_cpp-shared)
145174

146-
# Documentation (custom cmake macros from pandocology)
147-
# NOTE: pandoc options ref: https://pandoc.org/MANUAL.html
148-
string(TIMESTAMP TODAY "%Y-%m-%d")
149-
function(upsp_add_document TARGET FILENAME)
150-
list(APPEND UPSP_ADD_DOCUMENT_TARGETS ${TARGET})
151-
set(UPSP_ADD_DOCUMENT_TARGETS ${UPSP_ADD_DOCUMENT_TARGETS} PARENT_SCOPE)
152-
get_filename_component(BASENAME_WE ${FILENAME} NAME_WE)
153-
add_document(
154-
TARGET ${TARGET}_docx
155-
OUTPUT_FILE ${BASENAME_WE}.docx
156-
SOURCES ${FILENAME}
157-
RESOURCE_DIRS docs/md/static
158-
PANDOC_DIRECTIVES --to docx
159-
--from markdown+pandoc_title_block+table_captions+simple_tables+yaml_metadata_block
160-
--filter pandoc-xnos
161-
--mathjax
162-
--standalone
163-
--toc
164-
--number-sections
165-
--metadata date=${TODAY}
166-
NO_EXPORT_PRODUCT
167-
)
168-
169-
add_document(
170-
TARGET ${TARGET}_html
171-
OUTPUT_FILE ${BASENAME_WE}.html
172-
SOURCES ${FILENAME}
173-
RESOURCE_DIRS docs/md/static
174-
PANDOC_DIRECTIVES --to html
175-
--from markdown+pandoc_title_block+table_captions+simple_tables+yaml_metadata_block
176-
--filter pandoc-xnos
177-
--mathjax
178-
--standalone
179-
--toc
180-
--number-sections
181-
--metadata date=${TODAY}
182-
-c static/upsp-styles.css
183-
-A static/upsp-footer.html
184-
NO_EXPORT_PRODUCT
185-
)
186-
187-
add_dependencies(${TARGET}_html ${TARGET}_docx)
188-
endfunction()
189-
190-
function(upsp_serialize_document_depends)
191-
list(LENGTH UPSP_ADD_DOCUMENT_TARGETS NUMBER_TARGETS)
192-
if (${NUMBER_TARGETS} LESS_EQUAL 1)
193-
return()
194-
endif()
195-
math(EXPR START "1")
196-
math(EXPR STOP "${NUMBER_TARGETS} - 1")
197-
foreach(THIS_IDX RANGE ${START} ${STOP})
198-
math(EXPR PREV_IDX "${THIS_IDX} - 1")
199-
list(GET UPSP_ADD_DOCUMENT_TARGETS ${THIS_IDX} THIS_TGT)
200-
list(GET UPSP_ADD_DOCUMENT_TARGETS ${PREV_IDX} PREV_TGT)
201-
add_dependencies(${THIS_TGT}_docx ${PREV_TGT}_html)
202-
endforeach()
203-
endfunction()
204-
205-
upsp_add_document(upsp_user_manual docs/md/upsp-user-manual.md)
206-
upsp_add_document(upsp_swdd docs/md/upsp-swdd.md)
207-
upsp_add_document(upsp_third_party_dependencies docs/md/upsp-third-party-dependencies.md)
208-
upsp_serialize_document_depends()
209-
210-
# INSTALLATION TARGETS
211-
212-
# Documentation install targets
213-
# A bit hacky but it works. Grab outputs from the build directory
214-
# after pandoc has been run (pandoc configured by the various
215-
# cmake pandocology macros) and copy them "by hand" to install location.
216-
install(
217-
FILES
218-
${CMAKE_CURRENT_BINARY_DIR}/upsp-swdd.docx
219-
${CMAKE_CURRENT_BINARY_DIR}/upsp-swdd.html
220-
${CMAKE_CURRENT_BINARY_DIR}/upsp-third-party-dependencies.docx
221-
${CMAKE_CURRENT_BINARY_DIR}/upsp-third-party-dependencies.html
222-
${CMAKE_CURRENT_BINARY_DIR}/upsp-user-manual.docx
223-
${CMAKE_CURRENT_BINARY_DIR}/upsp-user-manual.html
224-
DESTINATION docs
225-
)
226-
install(
227-
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/static
228-
DESTINATION docs
229-
)
230-
231175
install(
232176
TARGETS
233177
add_field
@@ -248,120 +192,20 @@ install(
248192
scripts/upsp-make-processing-tree
249193
scripts/upsp-kulite-comparison
250194
scripts/upsp-plotting
251-
scripts/upsp-unity-export
195+
scripts/upsp-qsub-args
252196
DESTINATION
253197
bin
254198
)
255199

256-
# Python install process could be a bit cleaner.
257-
# - Ideally we would make use of setuputils.
258-
# - However, there are a couple modules built with
259-
# pybind11 (e.g., raycast.so) that rely on other
260-
# solibs built by the project. If a user wants
261-
# to import them in Python, then either
262-
# a) raycast.so has to have its RPATH populated with
263-
# the path to the folder containing the solib
264-
# dependencies, or
265-
# b) the user has to have their LD_LIBRARY_PATH set.
266-
# Clearly, option (a) is preferred for Python
267-
# development, and option (b) is an annoying
268-
# workaround.
269-
# - By using the CMake install() command on the pybind11
270-
# CMake targets, their RPATH's are updated correctly
271-
# so option (a) works. However, this precludes using
272-
# setuputils.
273-
# - There is probably a way to configure CMake via
274-
# setuputils calls to properly replicate the behavior
275-
# but I haven't figured it out yet.
276-
install(TARGETS cine raycast LIBRARY DESTINATION python/upsp)
277-
278-
# The rest of the non-pybind11 Python modules are then
279-
# just manually copied here. We explicitly list out all files
280-
# for safety (in general, globs in build scripts aren't best
281-
# practice).
200+
# TODO I think this works in a fairly brittle fashion right now.
201+
# It just so happens that the cmake_install_dir staging directory
202+
# created by scikit-build has a "python/upsp" folder mimicking the
203+
# source tree layout... so these extensions are just "dropped" into the
204+
# right spot. There's probably a more robust way to specify their
205+
# install location, probably some CMAKE_ variable I'm ignorant of.
282206
install(
283-
FILES
284-
python/upsp/__init__.py
285-
DESTINATION
286-
python/upsp
287-
)
288-
289-
install(
290-
FILES
291-
python/upsp/processing/context.py
292-
python/upsp/processing/grids.py
293-
python/upsp/processing/io.py
294-
python/upsp/processing/kulite_processing.py
295-
python/upsp/processing/kulite_utilities.py
296-
python/upsp/processing/p3d_conversions.py
297-
python/upsp/processing/p3d_utilities.py
298-
python/upsp/processing/plot3d.py
299-
python/upsp/processing/tree.py
300-
python/upsp/processing/unity_conversions.py
301-
DESTINATION
302-
python/upsp/processing
303-
)
304-
305-
install(
306-
FILES
307-
python/upsp/cam_cal_utils/external_calibrate.py
308-
python/upsp/cam_cal_utils/img_utils.py
309-
python/upsp/cam_cal_utils/parsers.py
310-
python/upsp/cam_cal_utils/photogrammetry.py
311-
python/upsp/cam_cal_utils/target_bumping.py
312-
python/upsp/cam_cal_utils/visibility.py
313-
python/upsp/cam_cal_utils/visualization.py
314-
DESTINATION
315-
python/upsp/cam_cal_utils
316-
)
317-
318-
install(
319-
FILES
320-
python/upsp/target_localization/blob_detector_methods.py
321-
python/upsp/target_localization/gaussian_fitting_methods.py
322-
DESTINATION
323-
python/upsp/target_localization
324-
)
325-
326-
install(
327-
FILES
328-
python/upsp/kulite_comparison/plotting.py
329-
python/upsp/kulite_comparison/selection.py
330-
python/upsp/kulite_comparison/spatial_queries.py
331-
DESTINATION
332-
python/upsp/kulite_comparison
333-
)
334-
335-
install(
336-
FILES
337-
python/upsp/processing/templates/add-field.sh.template
338-
python/upsp/processing/templates/gltf-viewer.html.template
339-
python/upsp/processing/templates/launcher.sh.template
340-
python/upsp/processing/templates/run-step-parallel.sh.template
341-
python/upsp/processing/templates/run-step-serial.sh.template
342-
DESTINATION
343-
python/upsp/processing/templates
344-
)
345-
346-
# Define the two required variables before including
347-
# the source code for watching a git repository.
348-
set(PRE_CONFIGURE_FILE "scripts/version")
349-
set(POST_CONFIGURE_FILE "${CMAKE_BINARY_DIR}/version")
350-
include(cmake/git_watcher.cmake)
351-
352-
install(
353-
PROGRAMS
354-
${CMAKE_BINARY_DIR}/version
355-
DESTINATION
356-
${CMAKE_INSTALL_PREFIX}
357-
)
358-
359-
install(
360-
FILES
361-
scripts/activate.sh
362-
scripts/activate.csh
363-
RELEASE.md
364-
DESTINATION
365-
${CMAKE_INSTALL_PREFIX}
207+
TARGETS
208+
cine
209+
raycast
210+
LIBRARY DESTINATION python/upsp
366211
)
367-

0 commit comments

Comments
 (0)