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

Makefile doesn't see linked Python versions #13

Open
SethKitchen opened this issue Apr 11, 2019 · 1 comment
Open

Makefile doesn't see linked Python versions #13

SethKitchen opened this issue Apr 11, 2019 · 1 comment

Comments

@SethKitchen
Copy link

SethKitchen commented Apr 11, 2019

So I installed the newest python version for the arena

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar -xzvf Python-3.7.3.tgz
cd Python-3.7.3
mkdir build
cd build
../configure --enable-optimizations --with-ensurepip=install
make -j8
make altinstall
update-alternatives --install /usr/bin/python python /usr/local/bin/python3.7 50
alias pip=pip3.7
alias pip3=pip3.7
alias python3=python

but makefiles do not see the symbolic links that update-alternatives and alias provides -- therefore "make" will fail with

pip3: unknown command

What does work is if you replace pip3 in the makefile with

pip3.7

and python3 in the makefile with

python3.7

?? Is there a better way to get around this? I think for the competition I will tell people to change their make file.

@JacobFischer
Copy link
Member

Do you know if python3 -m pip ... would work instead? That's what I have to use on Windows for pip3. If that works we could just update the Makefile to that.

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

2 participants