Skip to main content

python extension for SNAP model

Project description

This folder contains wrapper functions for the python extension of Athena/HARP.

It uses Cython as the software to extend the existing C++ modules

To install cython, execute:

pip install Cython

More information can be found at http://docs.cython.org/

I found that it is hard to distribute cython project to python

Here's the problems I encountered

1. the extern keywords import header files counting from the 'setup.py' directory

2. the pxd file uses relative import

3. the pyx file uses absolute import

4. pypi needs manylinux tag

see discuss at:

https://stackoverflow.com/questions/50690526/how-to-publish-binary-python-wheels-for-linux-on-a-local-machine

https://github.com/pypa/manylinux

https://github.com/pypa/python-manylinux-demo

Check wiki page on continuous integration

https://en.wikipedia.org/wiki/Continuous_integration

How to distribution a cython package

https://stackoverflow.com/questions/47042483/how-to-build-and-distribute-a-python-cython-package-that-depends-on-third-party

How to package and distribute

https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/

Pypi token

https://pypi.org/manage/account/token/

How to distribute a package

python3 -m build --sdist python3 -m build --wheel twine upload dist/0.0.7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapy-0.0.7.tar.gz (16.1 kB view hashes)

Uploaded Source

Built Distribution

snapy-0.0.7-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page