rsgalloway / pyseq

Compressed sequence string module for Python
https://pyseq.rsgalloway.com/
Other
123 stars 36 forks source link

Use entry_points in setup tools #73

Closed rsgalloway closed 1 month ago

rsgalloway commented 1 month ago

Prefer using console_scripts in entry_points over scripts in the setup.py module for:

  1. cross-platform compatibility and
  2. avoiding having the interpreter assign name to main, which could cause code to be imported twice (if another module imports your script)

https://packaging.python.org/en/latest/specifications/entry-points/

This will most likely involve a refactor of the code to add the entry point.

Is there a better way?