Comments (2)
python::pyvenv
relies on $facts['python3_version']
if python_version
is set to system
. That's why it's failing here and I'd say, adding a version check seems to be a good fix:
if $facts['python_version'] or $facts['python2_version'] or $facts['python3_version'] {
create_resources('python::pip', $python_pips)
create_resources('python::pyvenv', $python_pyvenvs)
create_resources('python::requirements', $python_requirements)
create_resources('python::dotfile', $python_dotfiles)
}
Maybe we should drop the python_version
and python2_version
fact, as it's not used within the module (but might be used by others)
from puppet-python.
I think the proposed solution would only solve the problem for sub-resources that have been declared through parameters of ::python
, but the problem would still occur when ::python::pyvenv
is declared as its own ressource.
from puppet-python.
Related Issues (20)
- `python::pip`'s 'latest' not compatible with latest 'pip' (version 20.3) due to changed output HOT 8
- Set SELinux options on the File (Folder) generated by pyvenv HOT 1
- Pip uninstall does not support pkgname variable
- Release v6.0.2
- Requirements not updated for pyvenv -- requires forceupdate HOT 5
- keep backwards compatible support for python-virtualenv
- Could not evaluate: Working directory <virualenv> does not exist!
- ensure not detecting a pip version HOT 4
- Package with provider pip3 tries installing every run. HOT 2
- `python::pip` doesn't reinstall if `extras` is updated (with no change in `ensure`)
- puppet tries to install latest version of a pip package on every run
- Only supports CentOS, no other derivatives
- Add support for Amazon Linux 2023
- Rework package management to allow composition of dependencies
- Support puppet-epel 5.0.0 dependency
- python::umask has no effect on exec ressources
- Not possible to use multiple python versions for virtualenvs
- Puppet python latest version resolving - Prereleases HOT 3
- `python::pip`'s `notreallyaversion` is not compatible with latest `pip` (>= 24.1) due to changed output (again) HOT 3
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 puppet-python.