This document explains how to use Conan as an alternative package manager for BayesNet.
pip install conan
conan remote add Cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
conan profile new default --detect-
Create a
conanfile.txtin your project:[requires] libtorch/2.7.0 bayesnet/1.2.0 [generators] CMakeDeps CMakeToolchain
-
Install dependencies:
conan install . --build=missing -
In your CMakeLists.txt:
find_package(bayesnet REQUIRED) target_link_libraries(your_target bayesnet::bayesnet)
# Install dependencies
make conan-init
# Build debug version
make debug
make buildd
# Build release version
make release
make buildr
# Create package
make conan-create- Custom dependencies (folding, fimdlp, arff-files) are not available in ConanCenter
- These need to be built as custom Conan packages or replaced with alternatives
- The conanfile.py currently comments out these dependencies
For the custom dependencies, you'll need to create Conan recipes:
- folding: Cross-validation library
- fimdlp: Discretization library
- arff-files: ARFF file format parser
Contact the maintainer or create custom recipes for these packages.
Once custom dependencies are resolved:
# Create and test package
make conan-create
# Upload to your remote
conan upload bayesnet/1.2.0 -r myremote