Skip to content

Homebrew shebang in the package on PyPI #116

@jonassvatos

Description

@jonassvatos

Hi,
there is a shebang from Homebrew in the script in the bagit.py package downloaded from PyPI.
This effectivelly breaks the functionality if not run from within Homebrew, like other POSIX systems, Windows, non-homebrew OSX etc..

$ diff bagit.py bagit-1.7.0.data/scripts/bagit.py 
1c1
< #!/usr/bin/env python
---
> #!/usr/local/opt/python@2/bin/python2.7
cat bagit-1.7.0.dist-info/RECORD 
bagit.py,sha256=MvoFUMBP7sS4AjIT5hR9ktF7bKfHqvQdbsqDfXKn_zQ,54756
bagit-1.7.0.data/data/locale/en/LC_MESSAGES/bagit-python.mo,sha256=sLgIsf2Q1e6b4zTOHgfaC5zlZLGp4mTfYRb8PkUco2k,2849
bagit-1.7.0.data/scripts/bagit.py,sha256=x51j6TtA2AFzJOhghKQW5sxTot-lRAreOjOd72YkqKs,54774
bagit-1.7.0.dist-info/METADATA,sha256=qhxnDsxtmVTjSp5VO9xLAcVNTIXjewaK0OtlKj5zkBA,8077
bagit-1.7.0.dist-info/RECORD,,
bagit-1.7.0.dist-info/WHEEL,sha256=gduuPyBvFJQSQ0zdyxF7k0zynDXbIbvg5ZBHoXum5uk,110
bagit-1.7.0.dist-info/top_level.txt,sha256=f288ippe7ERSzETsEftza1dXq61Z4zFSXDgaTF6djpE,6

Even the hashes and filesizes are different..perhaps a manual PyPI push from the Homebrew environment?
I would suggest to create an os-independent Wheel..that's why we write tools in Python, right? :)

But other than this, thanks for all the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions