Comments (3)
I think just having the image ignore the python-version file would be fine. Can pyenv be stripped from the image?
from cimg-python.
@apeschel I want to look into this but as a beginner, I am not able to understand how to reproduce the bug. It would be great if you can help me with this
from cimg-python.
@apeschel - I think following the existing issues you've opened, I don't think the pyenv is the issue. We're using pyenv to support the same paths and install locations of python across all the versions the convenience image supports. If your project only supports 3.8.5
, then you should use the 3.8.5
image. In tools like pipenv, your Pipfile
can "lock" you to a specific python version that would stop the build from happening
circleci@55c305602d8b:~/project$ python --version
Python 3.8.5
circleci@55c305602d8b:~/project$ cat Pipfile | grep _version
python_version = "3.8.6"
circleci@55c305602d8b:~/project$ pipenv install
Warning: Python 3.8.6 was not found on your system…
Also, if using just a setup.py you can specify a python version in your setup.py to make it more explicit
circleci@55c305602d8b:~$ cat setup.py
from setuptools import setup
setup(
# Your setup arguments
python_requires='==3.8.6', # Your supported Python ranges
)
circleci@55c305602d8b:~$ pip install -e .
Obtaining file:///home/circleci
ERROR: Package 'UNKNOWN' requires a different Python: 3.8.5 not in '==3.8.6'
I believe the broken behavior you're seeing in changing python versions is from the cache restore. I opened this CircleCI-Public/python-orb#51 to address this. And included a few workarounds.
Thanks again for providing feedback on the initial release of the image and orb. Your input is extremely valuable.
from cimg-python.
Related Issues (20)
- Upgrade poetry HOT 1
- python 3.11 HOT 5
- cimg/python:3.9.15 + pipenv uses Python 3.10.6 HOT 3
- Python v3.11.0 & python-attr HOT 2
- add pipenv smoke test
- python 3.8.16, 3.9.16, 3.11.1, 3.7.16, 3.10.9 HOT 2
- BUG: linking errors with cimg/python:3.11.0 and glibc (xref) HOT 1
- Suggestion: multi-python-version images? HOT 1
- Python:3.11.1-node Pulls Old Node cimg HOT 2
- [misc] pyenv 2.3.13 is now available HOT 3
- Add pipx by default
- Pyenv shims broken HOT 1
- Support Java 17 LTS in browser images HOT 2
- Release Poetry 1.4.2 for Python 3.8 and 3.9 HOT 7
- Feature Request: Support Python 3.12 HOT 3
- Bug Report: pyenv shell integrations not enabled HOT 1
- CPython 3.12.2 and 3.11.8
- Bug Report: execution time increased by ~33% with 3.12 image HOT 1
- Node variant: NPM fails with EACCES error when installing package
- Bug Report: cimg/python:3.9 fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cimg-python.