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

python3 -> python in Makefile #3023

Merged
merged 1 commit into from
Oct 16, 2024
Merged

python3 -> python in Makefile #3023

merged 1 commit into from
Oct 16, 2024

Conversation

hyanwong
Copy link
Member

My installation doesn't bother defining python3 any more. I think we can assume python is v3 now

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.07%. Comparing base (2fb6ab8) to head (b9a6363).
Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3023      +/-   ##
==========================================
- Coverage   89.84%   87.07%   -2.77%     
==========================================
  Files          29       11      -18     
  Lines       32097    24666    -7431     
  Branches     5756     4556    -1200     
==========================================
- Hits        28837    21478    -7359     
+ Misses       1859     1824      -35     
+ Partials     1401     1364      -37     
Flag Coverage Δ
c-tests 86.69% <ø> (ø)
lwt-tests 80.78% <ø> (ø)
python-c-tests 89.05% <ø> (ø)
python-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 18 files with indirect coverage changes

@benjeffery
Copy link
Member

Yes, we're at the awkward point where some have removed python3 and some still have 2.x. I think we break on more people's machines with python3 now, so happy to change.

@benjeffery benjeffery added the AUTOMERGE-REQUESTED Ask Mergify to merge this PR label Oct 16, 2024
@jeromekelleher jeromekelleher removed the AUTOMERGE-REQUESTED Ask Mergify to merge this PR label Oct 16, 2024
@jeromekelleher
Copy link
Member

sorry I'm going to -1 this direct change as it breaks my setup, and I suspect will for Peter and a few others who regularly work with the C and are on Debian based Linux distros

Is there some other way to do this? Or can we just leave it for a bit?

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See point about breaking stuff

@hyanwong
Copy link
Member Author

hyanwong commented Oct 16, 2024

Oh, sorry. I didn't realise there were still python2 installations out there. I guess just leave it until Debian links python -> python3?

Alternatively, sudo apt update && sudo apt install python-is-python3, according to https://unix.stackexchange.com/questions/609855/how-to-make-python-an-alias-of-python3-systemwide-on-debian?

@jeromekelleher
Copy link
Member

Ah, hold on:

sudo apt install python-is-python3

sorts it.

Could we add python-is-python3 to the requirements listed here and elsewhere please? Maybe we could add a tip

@benjeffery
Copy link
Member

What are you running? Python 2 got taken out of ubuntu 4 years ago.

@hyanwong
Copy link
Member Author

What are you running? Python 2 got taken out of ubuntu 4 years ago.

I think Debian simply doesn't define a python (not even for python2, which is not installed by default anyway), unless you install python-is-python3

@jeromekelleher
Copy link
Member

What are you running? Python 2 got taken out of ubuntu 4 years ago.

You don't get python -> to python3 automatically, you have to install python-is-python3 (which I haven't been doing, up to now).

So, I'm happy to make the change, we just need to update the development docs so that they work.

My installation doesn't bother defining python3 any more. I think we can assume python is v3 now
@benjeffery
Copy link
Member

I've added a note to the docs and a friendly error message if the makefile finds python missing.

@benjeffery benjeffery merged commit baac2aa into tskit-dev:main Oct 16, 2024
1 of 13 checks passed
@jeromekelleher
Copy link
Member

Nice, thanks Ben

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

Successfully merging this pull request may close these issues.

3 participants