Python repackaging of the MEDCoupling library
Project description
MEDCoupling
This repository provides a Python repackaging of the latest version (9.3.0) of the MEDCoupling library via a Python file setup.py
and hence installable via pip
.
Building from source
Running python setup.py install
or pip install .
will
- Download the source code of MEDCoupling from salome-platform.org
- Build the C++ / Python libraries using
cmake
andswig
- Distribute and install generated files using
setuptools
The building process has been tested under Windows 10 with Visual Studio 2019 and under Ubuntu 18.04 with gcc 7.4.
Installation from PyPI
To install MEDCoupling, you can also simply use the binary wheels available on PyPI
pip install -U medcoupling
Binary wheels are available for 64-bit Windows (win_amd64
) and Linux-like platforms (manylinux1_x86_64
) and are built with Python 3.6 and 3.7. Sadly macOS is not supported (consult developers of MEDCoupling).
To assure that MEDCoupling is well installed, try importing it in your Python
import medcoupling # should not raise error
Versioning
The version of this package (on PyPI) follows that of MEDCoupling. For MEDCoupling 9.3.0 for instance, we use
v9.3.0r1, v9.3.0r2, ...
to designate all PyPI releases based on MEDCoupling 9.3.0. The suffix r[x]
is included (abusively, since according to PEP 440 it is for post releases) for possible bug fixes coming from this package.
Uploading to PyPI
To upload source and binary wheels to PyPI, type
# Source
python setup.py sdist
# Binary on Windows
python setup.py bdist_wheel --plat-name win_amd64
# Binary on Linux
python setup.py bdist_wheel --plat-name manylinux1_x86_64
# Upload to PyPI
python -m twine upload dist/*
License
MEDCoupling, and hence this repository are published under LGPL 2.1.
Repository author
Tianyi Li tianyikillua@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for medcoupling-9.3.0.post2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90713062d0927bc052cadc57d5d63a727ab5bafb0d7226a3aabb5f0c822f3868 |
|
MD5 | e806a6c0e044f9ff28cfcc9cac3ec5e5 |
|
BLAKE2b-256 | 6a06dfe49e89482e3c003fdbdf71e9a8c6738500fa7590f40559ec0f6fbc156a |
Hashes for medcoupling-9.3.0.post2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d43874343a66dec2e92c21aeccf667e6ab8d14ebd57f70efb708238f1d8aff |
|
MD5 | 3946cdbed495ef2d12a3706fa92fdb95 |
|
BLAKE2b-256 | cdd3b91db8ca352509cf0332c09f1dbdaabfd6d7f28924adb9f3cc3c0c915977 |
Hashes for medcoupling-9.3.0.post2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05bac10c5ff0db1d5df9b21b6114bf1393cce6c19734df718dfdae706bd7397 |
|
MD5 | a032a798bc2f754134c37904f216e994 |
|
BLAKE2b-256 | e829cf27b2589a3119bcf073a8a3682c2e373940bbbf921df376952b10355a51 |
Hashes for medcoupling-9.3.0.post2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0b091b71e4075548c2c6f1eb9de8584155ae91fcd51236097bf38cb48ef11e |
|
MD5 | 80cda260041e80d386bd268cb9451212 |
|
BLAKE2b-256 | 1a823007a45ae3427c9628e63515c6b96fa862ab9626f3ab83363d6751bf91d4 |