SanParraguez / smoothn

Fast and robust smoothing of gridded data in multiple dimensions using the discrete cosine transform.
GNU General Public License v3.0
3 stars 1 forks source link

Make package pip installable #1

Open gbernardino opened 8 months ago

gbernardino commented 8 months ago

Hi,

Great work! Could it be possible to add a setup.py, so the module is installable via pip?

Thanks!

SanParraguez commented 4 months ago

Hey, quite some time to answer, sorry for that.

I don't use pip (mostly conda) so I'm not very aware of this topic, could you elaborate on the advantages of having it as pip installable? I imagine having a fixed version in an environment could be comfortable in case of future deprecations or something similar. Still, right now in my lab, we have it in a dir which is part of the Python path, so any update to the main branch goes immediately to anybody using the package without updating the personal environments. I'm still quite willing to change it if makes some difference.

Thanks a lot for the comment!

gbernardino commented 4 months ago

Hi,

the main advantage is that you can just installable (and updatable) via a command, instead of copying it directly to a folder. You can also make installable via conda, I think that the process is mostly the same.