Skip to content
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

Install using conda #239

Open
gabriellovate opened this issue Mar 29, 2021 · 8 comments
Open

Install using conda #239

gabriellovate opened this issue Mar 29, 2021 · 8 comments

Comments

@gabriellovate
Copy link

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.

@kzidane
Copy link
Member

kzidane commented Mar 29, 2021

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 kzidane closed this as completed Mar 29, 2021
@gabriellovate
Copy link
Author

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.

@kzidane kzidane reopened this Mar 29, 2021
@kzidane
Copy link
Member

kzidane commented Mar 29, 2021

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

@gabriellovate
Copy link
Author

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.

@vmajor
Copy link

vmajor commented Oct 5, 2022

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
Copy link

vmajor commented Oct 5, 2022

@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.

@Azegele
Copy link

Azegele commented Oct 11, 2022

@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 ? ;-)

@vmajor
Copy link

vmajor commented Oct 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants