Files
spack/var/spack/repos/builtin/packages/bufr/python-version.patch
Alex Richert 482525d0f9 Update bufr recipe (#40033)
* Update bufr recipe
* Add v12.0.1
* style fixes
* remove test-related functionality for bufr
* Re-add testing

---------

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
2023-10-06 15:04:51 -07:00

13 lines
601 B
Diff

--- a/python/CMakeLists.txt 2023-06-08 12:39:26.000000000 -0600
+++ b/python/CMakeLists.txt 2023-07-19 13:45:11.000000000 -0600
@@ -8,8 +8,7 @@
file( COPY ncepbufr utils DESTINATION . )
# Library installation directory
-execute_process(COMMAND ${Python3_EXECUTABLE} -c "from __future__ import print_function; import sys; print(sys.version[:3], end='')"
- OUTPUT_VARIABLE _PYVER)
+set(_PYVER "${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}")
set(_install_dir "${CMAKE_INSTALL_FULL_LIBDIR}/python${_PYVER}/site-packages")
# Build the extension module for use in install tree