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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file snapy-0.0.7.tar.gz.

File metadata

  • Download URL: snapy-0.0.7.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.8

File hashes

Hashes for snapy-0.0.7.tar.gz
Algorithm Hash digest
SHA256 52d5d273a5598648c395dc8edea10156cad0339fafafbb702057bb834d66f9e1
MD5 e34823c2bcdae3cd378edffae454c241
BLAKE2b-256 7e81737c3e11ae9548db80f39f8485c09b3b0eb5ec97f9ecbc000de4a6cc252c

See more details on using hashes here.

File details

Details for the file snapy-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: snapy-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.8

File hashes

Hashes for snapy-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 df3617a3b269289bb75364f8bac28512640fb35153cb6fcdaadf011794f5e5a0
MD5 ed6c9713f4274dd33a1f446a12a34952
BLAKE2b-256 7a3aa0a5e65cd729faf92ddfe468dc72d6e9df1c94829aa54f894746764dec7e

See more details on using hashes here.

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