Files
BayesNet/CONAN_README.md

1.6 KiB

Using BayesNet with Conan

This document explains how to use Conan as an alternative package manager for BayesNet.

Prerequisites

pip install conan
conan remote add Cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
conan profile new default --detect

Quick Start

As a Consumer

  1. Create a conanfile.txt in your project:

    [requires]
    libtorch/2.7.0
    bayesnet/1.2.0
    
    [generators]
    CMakeDeps
    CMakeToolchain
    
  2. Install dependencies:

    conan install . --build=missing
    
  3. In your CMakeLists.txt:

    find_package(bayesnet REQUIRED)
    target_link_libraries(your_target bayesnet::bayesnet)
    

Building BayesNet with Conan

# Install dependencies
make conan-init

# Build debug version
make debug
make buildd

# Build release version
make release
make buildr

# Create package
make conan-create

Current Limitations

  • 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

Creating Custom Dependency Packages

For the custom dependencies, you'll need to create Conan recipes:

  1. folding: Cross-validation library
  2. fimdlp: Discretization library
  3. arff-files: ARFF file format parser

Contact the maintainer or create custom recipes for these packages.

Package Distribution

Once custom dependencies are resolved:

# Create and test package
make conan-create

# Upload to your remote
conan upload bayesnet/1.2.0 -r myremote