-
Notifications
You must be signed in to change notification settings - Fork 7
add stompy to conda #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the suggestion! Sorry for the long delay. I thought I would find an afternoon to get into this at some point, but it's been hard to prioritize. I agree it would be nice to have the dependencies set up and easy to install. Do you have a sense of the steps required? I wasn't sure where to start and haven't had a chance to look into it. |
No worries! I have not looked into it but if I find time would be happy to do so. Happy to try and help any way I can as I love this repo! Jacob |
Hey Rusty! I took a stab at the conda thing. For now, I think I have a reasonable start initiated to hopefully get the ball rolling. No doubt there are endless improvements, but what I've done is create the ability to download stompy using 'conda install' for windows 64 and mac osx machines (for now the most common installs most likely). Based on what I have done, someone wanting stompy for their windows or mac machines could install it as follows: Windows: *Note: be sure to have python=3.8 when doing this. Havent hashed out why this is demanded of me at the moment. type the following: Mac OSx: --> conda install -c jakecast7 stompy These have only been tested on my windows and mac machines which have the most current OS updates for their respective OS's. What I have done is create the most simple conda package whereby it has made the package from the current stompy commit (4542ef6). It installs the necessary dependencies and has a simple description. Also, it assumes an arbitrary version of 1.0.0. To make that version number more correct you could look into generating tags for your commits and then that number would correspond to the tag of the conda package. Updating stompy to conda would be as simple as updating the tag in the conda build files and rebuilding. This process calls for the construction of a single line 'build.sh' and 'bld.bat' files. They can easily be looked up online. The meat of the process is the 'meta.yaml' file which contains the dependencies, github repo url, and other details like verison # , tag # (i.e git_rev) and description info. The very simple form of these files that I implemented now are below attached. To publish stompy to your own conda channel you just need the three files in a single directory called stompy:
Then 'cd' into the directory and type: After building, it will give you a path to the build and you can upload it to your channel.
anaconda login
anaconda upload {path to the build saved locally in a conda-build directory under your Anaconda3 installation directory} I hope this helps!! See files I referenced attached below. Jacob |
Hi Rusty,
Ive been making tons of use of your code. I think conda would be a great way to more easily access it. I finally decided this may be useful after initializing it on many linux/unix/windows machines. Specifically, i think it would be useful on windows. Im a unix person so being able to have stompy in my conda environment would be so much easier since the anaconda powershell mimics unix. that way when unix users do have to venture into the windows environment it will be far easier. Happy to help anyway I can!
Jacob
The text was updated successfully, but these errors were encountered: