Python repackaging of the MEDCoupling library
Project description
MEDCoupling
This repository provides a Python repackaging of the latest version (9.4.0) of the MEDCoupling library via a Python file setup.py
and hence installable via pip
.
The initial purpose of this redistribution is to mainly use the remapping algorithms of MEDCoupling (see pymapping and paraview-mapping). Hence the following MEDCoupling functionalities are NOT supported
- MED file reading/writing via
MEDLoader
, so theMED-file
library is not required (MEDCOUPLING_MICROMED=ON
) - Parallel functionalities (
MEDCOUPLING_ENABLE_PARTITIONER=OFF
) - Renumbering (
MEDCOUPLING_ENABLE_RENUMBER=OFF
), which depends onboost
Versioning
The version of this package (on PyPI) follows that of MEDCoupling. For MEDCoupling 9.4.0 for instance, we use
v9.4.0r1, v9.4.0r2, ...
to designate all PyPI releases based on MEDCoupling 9.4.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.
Installation from PyPI
To install MEDCoupling, you can now simply use the binary wheels available on PyPI
pip install -U medcoupling
Binary Python 3.7 wheels are available for 64-bit Windows (win_amd64
), Linux-like platforms (manylinux2010_x86_64
) and macOS (macosx_10_11_x86_64
).
To assure that MEDCoupling is well installed, try importing it in your Python
import medcoupling # should not raise error
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 2017, under Ubuntu 18.04 with gcc 7.4, under the manylinux2010 platform and under macOS 10.15.
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
python3 setup.py bdist_wheel --plat-name manylinux1_x86_64
# Binary on macOS
python3 setup.py bdist_wheel --plat-name macosx_10_11_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.7.0.post1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8098d03c1578c45e04a363a8ead80ad801a1bdd6bb7ee9f4d102310123ecd7ec |
|
MD5 | a2dc2f758fad776dfaddf6e52a8faffd |
|
BLAKE2b-256 | c15b10a81365f1ea078826f0708eaa6f7c06556dc9ead8c3e3d79f51007cf3ef |
Hashes for medcoupling-9.7.0.post1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6624c073f7791c9fed06d571f06bff769bbe86fad9823d1d6c2d67d7de62f0 |
|
MD5 | 80f23a3527e166f25bb0686c63999610 |
|
BLAKE2b-256 | 5647c1d38779bd95e2146c9049ac9d5cb75402930b278af78026b0096baac4f5 |
Hashes for medcoupling-9.7.0.post1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78d0cd43bac68069bca620ed832bb38de361fb6df840f1001b96fde8f30e8b2 |
|
MD5 | bd6637dc7956ea48b354e6e41c88bb21 |
|
BLAKE2b-256 | 09cb5891a60eaba3da003d56b5f4e37ceca89852f715bf244616504f1660f85f |
Hashes for medcoupling-9.7.0.post1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b425f3f78da2a02c51fb96b388d242359d880d0b8d98286579488090c0a0248e |
|
MD5 | 1308724e79a35b81103cf9a8a4e2937e |
|
BLAKE2b-256 | e0a191bff6f09f3b64f7d099212695187f8889f7e93e29d05d6e1f39007022eb |
Hashes for medcoupling-9.7.0.post1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08393ae4fca3f22512391d2d45a696984ffdc31b796826294e1ae5863174f8aa |
|
MD5 | e925a313ec16e2f44a91b0230a430624 |
|
BLAKE2b-256 | cb8a821522d6bea0b63f26a6d4ad1522df9ff6fe36a558b2568a373c1e2e67bd |