libcs50 icon indicating copy to clipboard operation
libcs50 copied to clipboard

Install using conda

Open gabriellovate opened this issue 3 years ago • 8 comments

It would be nice to be able to install de CS50 library on a conda environment. Students not always have access to sudo permission, so it makes it easier to install the library on environments where the student has only user permissions.

gabriellovate avatar Mar 29 '21 09:03 gabriellovate

sudo access isn't needed to install the library. You should be able to specify the destination at which the library will be installed by setting DESTDIR. See https://github.com/cs50/libcs50#from-source-linux-and-mac!

kzidane avatar Mar 29 '21 14:03 kzidane

But this way one would not be able to easily update the library. One would have to manually download and install from source every time that there is a new release. It would be interesting to at least consider a Conda version.

gabriellovate avatar Mar 29 '21 16:03 gabriellovate

Fair point. Happy to help if you'd like to contribute this! :)

kzidane avatar Mar 29 '21 18:03 kzidane

Great, I never did anything like that, but I can do a little research and get back with something in a couple of days/weeks.

gabriellovate avatar Mar 29 '21 18:03 gabriellovate

I built the cs50 package for Windows and Linux using conda-build and it runs well on local in my cs50 venv. I do not plan to maintain it for inclusion in anaconda or conda-forge however. But, for anyone that feels they want to have cs50 in their Anaconda environment you can follow the instructions here: https://docs.conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-pkgs.html

You need to use python 3.9 in your cs50 venv.

vmajor avatar Oct 05 '22 08:10 vmajor

@kzidane I uploaded it to anaconda. It can be found/installed from here: conda install -c vmajor cs50

I hope I maintained the copyright information correctly and in compliance with the license. Let me know if there is a problem.

vmajor avatar Oct 05 '22 09:10 vmajor

@kzidane I uploaded it to anaconda. It can be found/installed from here: conda install -c vmajor cs50

I hope I maintained the copyright information correctly and in compliance with the license. Let me know if there is a problem.

Wen for mac ? ;-)

Azegele avatar Oct 11 '22 12:10 Azegele

Ha, from me possibly never. I do not have a Mac and I am really not volunteering to maintain this conda version. I made it just as convenience for others... and I guess to encourage others (you :) ) to build your own version.

vmajor avatar Oct 11 '22 14:10 vmajor