Skip to main content

Carolina

License PyPI - Python Version PyPI version Platform

Carolina is a pyDAKOTA fork maintained by Equinor. Its raison d'être is to have easier building of a Python Dakota wrapper, without any MPI support. Carolina supports Python version 3.12, 3.13, 3.14 and 3.15.

Installation

For Linux and MacOS:

pip install carolina

Otherwise, build Carolina youself as described below.

Building and installing Carolina

In order to build Carolina, Boost, including Boost.Python, and Dakota must be installed. This requires CMake and a C/C++ compiler. It is recommended to check the build scripts at .github/workflows/bundle_with_dakota_* where the full installation is described. The installation will likely vary across different operating systems. Roughly speaking, the following steps must be done:

  1. Install CMAKE

  2. Install Boost with correct python version (NOTE: you may need to edit the python version into the project-config.jam if on MacOS, see the excerpt from the MacOS install script below)

    python_version=$(python --version | sed -E 's/.*([0-9]+\.[0-9]+)\.([0-9]+).*/\1/')
    python_bin_include_lib="    using python : $python_version : $(python -c "from sysconfig import get_paths as gp; g=gp(); print(f\"$(which python) : {g['include']} : {g['stdlib']} ;\")")"
    sed -i '' "s|.*using python.*|$python_bin_include_lib|" project-config.jam
    
  3. Install dakota

    • after downloading, replace <DAKOTA_VERSION> with the dakota version, for example 6.18
    • In order to install Dakota to a specific folder, use -DCMAKE_INSTALL_PREFIX="<INSTALL_DIR>" as part of the cmake invocation.
    cd dakota-<DAKOTA_VERSION>-public-src-cli
    mkdir -p build
    cd build
    cmake \
        -DCMAKE_CXX_STANDARD=14 \
        -DBUILD_SHARED_LIBS=ON \
        -DDAKOTA_PYTHON_DIRECT_INTERFACE=ON \
        -DDAKOTA_PYTHON_DIRECT_INTERFACE_NUMPY=ON \
        -DDAKOTA_DLL_API=OFF \
        -DHAVE_X_GRAPHICS=OFF \
        -DDAKOTA_ENABLE_TESTS=OFF \
        -DDAKOTA_ENABLE_TPL_TESTS=OFF \
        -DCMAKE_BUILD_TYPE='Release' \
        -DDAKOTA_NO_FIND_TRILINOS:BOOL=TRUE \
        ..
    make -j4 install
    

    This step is the one that might be the most tricky to get working on your local OS. It expects a number of packages to be found, including libgfortran, eigen, lapack, numpy, and for the appropriate libraries to be on LD_LIBRARY_PATH(linux)/DYLD_LIBRARY_PATH(MacOS). Build errors often arise from (1) the package not being installed or (2) library folders/files of the installed package not being on the library path (LD_LIBRARY_PATH for linux or DYLD_LIBRARY_PATH for MacOS).

  4. After installing Dakota, it is possible to run pip install . as it will look for the following environment variables:

  • The BOOST_ROOT environment variable can be set to the location of the boost library containing the folders include and lib, if they are not already included globally.

  • The BOOST_PYTHON can be set if a given version of boost_python is needed. For instance if Python 3.8 is to be used:

        export BOOST_PYTHON=boost_python38
    

    By default the installation script will try to guess the boost_python version from the minor version of Python, i.e. for Python 3.10, it will try boost_python310.

  • It also expects dakota binary executable to be on the system PATH. To verify this, see if you can type dakota in the terminal and run it without errors. Then, try start up python and see if you can import dakota. If these two "tests" pass, you should be able to install Carolina.

Carolina can then be installed with:

    pip install .

The library can then be tested by entering the tests directory and execute:

    pytest

In the case of testing newer versions of Dakota, scripts can be found in the script folder.

Carolina requires Dakota 6.18, but will work with older versions as well. Pathes can be reverted to allow for building against versions prior to 6.13 or 6.16.

From Dakota version 6.13 a different set of boost libraries is needed: instead of boost_signals, boost_program_options is used. From Dakota version 6.16 a small change was made in the Python interface. From Dakota version 6.18 a file was removed from the source and build script was altered.

Metadata

Release files for carolina 2.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for carolina 2.0.6
File Actions
carolina-2.0.6-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details for carolina-2.0.6-cp315-cp315-manylinux_2_28_x86_64.whl
carolina-2.0.6-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details for carolina-2.0.6-cp315-cp315-macosx_15_0_arm64.whl
carolina-2.0.6-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for carolina-2.0.6-cp314-cp314-manylinux_2_28_x86_64.whl
carolina-2.0.6-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for carolina-2.0.6-cp314-cp314-macosx_15_0_arm64.whl
carolina-2.0.6-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for carolina-2.0.6-cp313-cp313-manylinux_2_28_x86_64.whl
carolina-2.0.6-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for carolina-2.0.6-cp313-cp313-macosx_15_0_arm64.whl
carolina-2.0.6-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for carolina-2.0.6-cp312-cp312-manylinux_2_28_x86_64.whl
carolina-2.0.6-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for carolina-2.0.6-cp312-cp312-macosx_15_0_arm64.whl

Total release size: 237.1 MB

Release files / carolina-2.0.6-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL carolina-2.0.6-cp315-cp315-manylinux_2_28_x86_64.whl
Size 35.8 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f127c15b5ca35e0b41c0f6d19a7283ff383435d34611da7b3657c4df8f3e7e69
BLAKE2b-256 checksum
How to use checksums
7a6d34dc17f140b08636042cdb55ed5c3cf8872290e2acf8fe8607a7c6df367d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp315-cp315-macosx_15_0_arm64.whl

Download URL carolina-2.0.6-cp315-cp315-macosx_15_0_arm64.whl
Size 23.5 MB
Tags CPython 3.15 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
998e79c75174383a8b7d7327069d00db65bae6ffd384130f198bf8f0167dcb2c
BLAKE2b-256 checksum
How to use checksums
924b3d7151f48014061b42d570907120ee798321c76fd8394b0173a4deb3f1d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL carolina-2.0.6-cp314-cp314-manylinux_2_28_x86_64.whl
Size 35.8 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
99444c50082e3fbcc6886bf80911ed5aaa8bdbed18762ff176ccadae010c0cdd
BLAKE2b-256 checksum
How to use checksums
af2f66c9ca5e1b6c98be4f20868bdfcd52f877340e20a0d8aff0d4c9967fd526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp314-cp314-macosx_15_0_arm64.whl

Download URL carolina-2.0.6-cp314-cp314-macosx_15_0_arm64.whl
Size 23.5 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
cddadab619e88703f8bb4d9f663062d0e221a09c3a1767b150f3d760ed383e06
BLAKE2b-256 checksum
How to use checksums
5d0ad3013c8d2cb317f54f6eeae97634200085723ea3827ef8f64505aab784ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL carolina-2.0.6-cp313-cp313-manylinux_2_28_x86_64.whl
Size 35.8 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
922cef35e9bdfde2293f452346281f90a71083bc9d38ec6f6d1f64cd439f2e54
BLAKE2b-256 checksum
How to use checksums
73eb247b89123ed676ed996042c912ab69b425a67a8d49f5830349bcb1d70f63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp313-cp313-macosx_15_0_arm64.whl

Download URL carolina-2.0.6-cp313-cp313-macosx_15_0_arm64.whl
Size 23.5 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
7ec5d8cfdfa345ddddb50729f4aefa9313f2d99816a977bf4036d7ddacf49f2a
BLAKE2b-256 checksum
How to use checksums
e8f68952941530c0354921eac53da0fd87d33a688f5ca3b1319eab44c10e70a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL carolina-2.0.6-cp312-cp312-manylinux_2_28_x86_64.whl
Size 35.8 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2e54f6867340df3a9e9f33e345f64dbef907072ac47cbdcd697f89d29bf07f21
BLAKE2b-256 checksum
How to use checksums
43a9c7d6174cdb7b72826267335e1281c7acf4c7c57702ec28ca3215effa7270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / carolina-2.0.6-cp312-cp312-macosx_15_0_arm64.whl

Download URL carolina-2.0.6-cp312-cp312-macosx_15_0_arm64.whl
Size 23.5 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
19aa671f6e4475dc54b1ccb1a9d9c266ad439878450957ae749bc38a44dc82e6
BLAKE2b-256 checksum
How to use checksums
8615524cf534a918f25b15ab8acda965da0e053e34fe0a83469c90c791def600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for carolina 2.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page