ODYM icon indicating copy to clipboard operation
ODYM copied to clipboard

setup.py and installable package

Open haasad opened this issue 7 years ago • 2 comments

Hey @stefanpauliuk and @nheeren,

i checked out the repo after seeing the poster at GRC. It wasn't clear to me how to install the package and then I saw your discussion in #4. In this PR there is a setup.py file to make odym an installable package. You can test it in a new condaenv/virtualenv by installing it from my fork:

pip install git+https://github.com/haasad/ODYM

Like this you have an easy way to directly install it from github, even before you put it on pypi/anaconda.

You'll probably want a different package namespace than what I added in odym/__init__.py, that's just a suggestion based on the syntax you use in the tutorial notebook. You could then also get rid of the "path hacking" in the notebooks if odym is installed.

I also removed some of the compiled .pyc files and added them to gitignore, I think there's no reason to have these on github.

Let me know if this is useful for you. I can also give some inputs if you want to make it available via conda.

haasad avatar May 25 '18 21:05 haasad

Thanks Adrian!! This package is still a bit of a moving target which is why we did not invest too much time in some of these things yet (such as conda).

pip install git+https://github.com/haasad/ODYM

Seems cool. Stefan should have a look at this as he is the main chef here.

You'll probably want a different package namespace than what I added in odym/init.py, that's just a suggestion based on the syntax you use in the tutorial notebook. You could then also get rid of the "path hacking" in the notebooks if odym is installed.

Sorry – I am not sure if I get it...

I also removed some of the compiled .pyc files and added them to gitignore, I think there's no reason to have these on github.

Yes! Thanks – I also meant to do that for a while now...

nheeren avatar May 27 '18 13:05 nheeren

An easy install is still relevant in 2020 ;-)

ntropy-esa avatar Aug 20 '20 13:08 ntropy-esa