NeuralEnsemble / PyNN

A Python package for simulator-independent specification of neuronal network models.
Other
276 stars 126 forks source link

lack of _version.py #680

Closed alan-stokes closed 4 years ago

alan-stokes commented 4 years ago

We were trying to find a way to figure out what version of pynn a user was using, and we thought wed find _version.py file at the top of the pynn install, coz that's just good practice. alas not.

Please fix in future releases.

mstimberg commented 4 years ago

We were trying to find a way to figure out what version of pynn a user was using, and we thought wed find _version.py file at the top of the pynn install, coz that's just good practice. alas not.

I am not a PyNN developer, but I have to say that I don't consider the lack of _version.py bad practice. Having a file storing the version is just one of the many options given in the (more or less) authoritative source on packaging, and naming this file _version.py is certainly not the only possibility.

Why not import pyNN and check pyNN.__version__? This is the canonical way for checking a package version, isn't it?

apdavison commented 4 years ago
import pyNN

print(pyNN.__version__)