Skip to content

jdegenstein/ocp-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building ocp-addons

Clone the repository

git clone https://github.com/jdegenstein/ocp-addons.git
cd ocp-addons

Create the development environment

The Python environment

mamba env create -f env.yml
mamba activate ocp-addons

OS specific configurations

  • Linux (x86_64)

    sudo apt-get update
    sudo apt-get install freetype* libfreetype6-dev libgl1-mesa-glx
    mamba install -c conda-forge gxx_linux-64=12
    pip install auditwheel patchelf
  • Linux (aarch64)

    sudo apt-get update
    sudo apt-get install freetype* libfreetype6-dev libgl1-mesa-glx
    mamba install -c conda-forge gxx_linux-aarch64=12
    pip install auditwheel patchelf
  • MacOS (Apple Silicon)

    brew install automake
    pip install delocate
  • Windows (Intel)

    mamba install vs2019_win-64
    pip install delvewheel

Build ocp-addons

Build the pybind11 wheel

python -m build -n

Relocate the libraries in the wheel

  • Linux (x86_64)

    auditwheel repair --plat manylinux_2_35_x86_64 dist/ocp_addons-*.whl
  • Linux (aarch64)

    auditwheel repair --plat manylinux_2_35_aarch64 dist/ocp_addons-*.whl
  • MacOS (Apple Silicon)

    DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib python -m delocate.cmd.delocate_wheel \
        --wheel-dir=wheelhouse dist/ocp_addons-*_arm64.whl
  • Windows (Intel)

    python -m delvewheel repair --wheel-dir=wheelhouse dist\ocp_addons-0.1.0-cp311-cp311-win_amd64.whl

Test the library

cd ..
python test.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published