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

Upgrade Python version #1071

Closed
kerchner opened this issue Jun 22, 2021 · 4 comments
Closed

Upgrade Python version #1071

kerchner opened this issue Jun 22, 2021 · 4 comments

Comments

@kerchner
Copy link
Member

Currently on 3.6

@lwrubel lwrubel added this to the 2.5.0 milestone Oct 4, 2021
@lwrubel
Copy link
Collaborator

lwrubel commented Oct 4, 2021

Upgrade to 3.9 across all repos using Python.

@dolsysmith
Copy link
Contributor

  1. Update sfm-base Dockerfile to use either the Python 3.9 "buster" (Debian 10) or "bullseye" (Debian 11) Docker image.
  2. Update the sfm-processing Dockerfile, which starts from an Ubuntu 18 image.

@dolsysmith
Copy link
Contributor

I had to do the following to create a virtualenv with Python 3.8.12 on my VM (matching the version used in the Docker images).

  1. Build Python 3.8.12 from source: https://tecadmin.net/install-python-3-8-ubuntu/
  2. Install additional dependencies needed by librabbitmq:
    • sudo apt-get install libpython3.8-dev
    •  sudo apt-get install -y --no-install-recommends \
        autoconf \
        automake \
        pkg-config \
        libtool
      
  3. Assuming Python 3.8.12 is installed as python3.8, run this command to create the virtual environments: python3.8 -m venv ENV. (You may also need to install python3.8-venv in order to use the venv command.)

@lwrubel
Copy link
Collaborator

lwrubel commented Oct 21, 2021

Closed with gwu-libraries/sfm-utils#46, #1087 and PRs in other repos.

@lwrubel lwrubel closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants