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

Update dev requirements #3134

Open
agladstein opened this issue Apr 3, 2025 · 5 comments
Open

Update dev requirements #3134

agladstein opened this issue Apr 3, 2025 · 5 comments
Assignees
Labels
Infrastructure and tools Development infrastructure and tools
Milestone

Comments

@agladstein
Copy link
Member

When I recently tried to follow the instructions on the dev docs to set up the environment to build docs locally, I ran into some problems. @benjeffery helped me get setup locally, but this needs to be applied to the requirements.yml (and requirements.txt?).

In order to setup locally (Apple M2, Sonoma 14.1.2), we:

Create a new env from python/development/requirements.txt

mamba create -n tskit_dev python=3.12
mamba activate tskit_dev
pip install -r python/requirements/development.txt
pip uninstall tskit msprime  # This is because pip didn't install tskit and msprime corectly with wheeles
mamba install tskit msprime 
pip install pandas
# Need to make tskit locally to use the local version
cd python; make clean; make 
@agladstein agladstein added the Infrastructure and tools Development infrastructure and tools label Apr 3, 2025
@benjeffery benjeffery added this to the Python 0.6.2 milestone Apr 3, 2025
@jeromekelleher
Copy link
Member

Out of interest @agladstein, if you're working with mamba already, why not install all the requirements from there in the first place?

@benjeffery
Copy link
Member

mamba was left installing for several hours without completing. We never got to the bottom of why.

@molpopgen
Copy link
Member

This issue would seem to suggest not using anything in the conda/mamba world? Unless you 100% need some other tool only available that way, a regular venv will be much more reliable.

@hyanwong
Copy link
Member

hyanwong commented Apr 4, 2025

Is this just because of the msprime GSL requirement?

@jeromekelleher
Copy link
Member

msprime has binary wheels including GSL built-in for some time now (although there is tskit-dev/msprime#2343 )

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

No branches or pull requests

5 participants