
This commit ensures that CMake packages that also have Python as a build/link dep get a couple defines for the Python path so that CMake's builtin `FindPython3`, `FindPython`, `FindPythonInterp` modules can locate Python correctly. The main problem with those CMake modules is that they first search for Python versions known at the time of release, meaning that old CMake maybe find older system Python 3.8 even though Python 3.11 comes first in `CMAKE_PREFIX_PATH` and `PATH`. Package maintainers can opt out of this by overriding the `find_python_hints = False` attribute in the package class.
45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Odgi(CMakePackage):
|
|
"""Optimized dynamic genome/graph implementation.
|
|
Odgi provides an efficient and succinct dynamic DNA sequence graph model, as
|
|
well as a host of algorithms that allow the use of such graphs in
|
|
bioinformatic analyses.
|
|
"""
|
|
|
|
homepage = "https://github.com/pangenome/odgi"
|
|
git = "https://github.com/pangenome/odgi.git"
|
|
|
|
# notify when the package is updated.
|
|
maintainers("tbhaxor", "EbiArnie")
|
|
|
|
# <<< Versions list starts here
|
|
version("0.8.3", commit="34f006f31c3f6b35a1eb8d58a4edb1c458583de3", submodules=True)
|
|
# >>> Versions list ends here
|
|
|
|
# compilation problem with ninja
|
|
generator("make", default="make")
|
|
|
|
# the range is required to successfully build the program
|
|
requires("%gcc", msg="Package odgi depends on the gcc C++ compiler")
|
|
conflicts(
|
|
"%gcc@:9.2,13:", msg="Unsupported compiler version. Recommended range is 9.3 -> 12.x"
|
|
)
|
|
|
|
# <<< Dependencies list starts here
|
|
depends_on("python")
|
|
depends_on("py-pybind11")
|
|
depends_on("sdsl-lite")
|
|
depends_on("libdivsufsort")
|
|
depends_on("jemalloc")
|
|
# >>> Dependencies list ends here
|
|
|
|
def cmake_args(self):
|
|
return ["-DCMAKE_CXX_STANDARD_REQUIRED:BOOL=ON"]
|