neuromorphicsystems / astrometry

Astrometry turns a list of star positions into a pixel-to-sky transformation (WCS)
GNU General Public License v3.0
27 stars 3 forks source link

files on GitHub and PyPI are different #4

Closed kinoshitadaisuke closed 1 year ago

kinoshitadaisuke commented 1 year ago

Hello,

I tried to install astrometry 4.1.1, and have found that files downloaded from GitHub and PyPI are different. The file astrometry-4.1.1.tar.gz on PyPi contains nearly everything, but the file "astrometry_extension/astrometry_extension_utilities.h" and the file "scripts/plot_distortion.py" are missing. The file astrometry-4.1.1.tar.gz on GitHub misses the file "PKG-INFO", files in the directories " astrometry.egg-info" and "astrometry.net".

Could you please check about it?

thank you,

Daisuke

aMarcireau commented 1 year ago

Hi @kinoshitadaisuke,

Thank you for noticing! I added "astrometry_extension/astrometry_extension_utilities.h" and "scripts/plot_distortion.py" to "MANIFEST.in", which controls which files are packaged in the source distribution on PyPI.

The source distribution "astrometry-4.1.1.tar.gz" is generated by the command python3 setup.py sdist. Besides copying the project files, the command creates a few extra files (including PKG-INFO and astrometry.egg).

Github generates "astrometry-4.1.1.tar.gz" by zipping the repository, which is why generated files are missing. "astrometry.net" is a git submodule of this repository and is not included either.

If you want to build a copy of astrometry from source or edit this repository, you should download the PyPI source distribution file or use git clone --recursive https://github.com/neuromorphicsystems/astrometry.git to copy this repository with the astrometry submodule.

Cheers, Alex