Comments (15)
Does subsequent "pipenv run" knows the latest pipenv install
has been executed with --system
? I have lot of issues on travis where (like in docker) I prefere to use the system's python instead of a virtualenv's one. Can pipenv run
automatically finds out it need to use system's python?
(i also prefere using exactly the same chain of command between travis/docker and manual dev, instead of having to maintain 2 build scripts) ?
from pipenv.
@stibbons, yes, you can use --system
to install the packages directly on the system. It does create a virtualenv as part of it's initialization check but we're looking into making that more sensible. The created virtualenv won't be utilized unless you run pipenv install
without --system
.
from pipenv.
I'm honestly only using Pipenv because I like the Pipfile
format. I would be more than happy if I could decouple that from the virtualenv. Pipenv may be made for humans, but I really need it to be useful for computers (e.g. automation).
from pipenv.
@clintonb Agreed. I really want to leverage the protection of the Pipfile.lock
mechanism, but when I'm using Docker, I'd prefer to leave the virtualenv aspect aside. It'd be awesome if those two features could become usable independently.
from pipenv.
Also as of next release I enabled auto_envvar_prefix
so you might be able to do something like PIPENV_RUN_SYSTEM=1
from pipenv.
It would be nice if we could set the use of --system
as an environment variable (e.g. PIPENV_USE_SYSTEM
). This would allow most commands and scripts to stay constant while using environment variables to change specific behaviors.
from pipenv.
Good idea :) I use pipenv like usual in my docker, simply in prepend all command by pipenv run. This forces the use of a virtualenv inside the docker, maybe it is overkill. But I like the idea of the env var :)
from pipenv.
this would be a replacement for that workflow
from pipenv.
Well, pyenv is more than just a virtualenv manager (in fact, that aspect comes only as a plugin). It's real use case is to manage multiple Python versions on a single machine, which seems orthogonal to the use case of pipenv. So I think the question remains if they play nicely together.
from pipenv.
I see, thank you. Great work on this @kennethreitz!
from pipenv.
I believe that https://github.com/kennethreitz/pipenv/issues/98, which we're in the midst of debugging, is caused by a pyenv
incompatibility.
from pipenv.
So, what is the advised workflow in docker ? I have a project using pipenv that requires twisted that cannot be built into my alpine docker. I want to use the provided alpine package py-twisted
. Can pipenv install the dependencies directly on the system and not on a virtualenv (it looks like pipenv install --system
still creates a virtualenv) ?
from pipenv.
Great !
from pipenv.
Requirementslib
has interfaces to both
from pipenv.
Thanks @techalchemy!
from pipenv.
Related Issues (20)
- pyarrow error on FreeBSD 13.2 HOT 5
- Please update Pipfile and Pipfile.lock with the latest invoke version
- pipenv does not update the virtual environment when the python version is updated in the Pipfile HOT 2
- Specify Python Version Range in Pipfile HOT 3
- cooperate with pyenv, when The `pyenv` is installed, and the python version required in `Pipfile` is not installed, it will automatically trigger `pyenv` to download and install the latest Python distro satisfy the requirement.
- Should Dependabot manually / explicitly call plette for `Pipfile` validation? HOT 4
- Make the Pipfile.lock output be functional HOT 2
- ResourceWarning: unclosed file HOT 2
- pipenv check fails to complete, errors with KeyError HOT 7
- Dependency resolution error upgrading a package by a patch version with no changes to dependencies HOT 3
- ResourceWarning when pipenv install --python 3.11 -r requirements.txt HOT 1
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 6
- Create python-package-conda.yml #6125 HOT 3
- PiPENV
- PEEP process HOT 3
- Remove the PEEP process
- Fedora 40 has dropped pipenv
- Unexpected behaviour when using `--index` arg with non existant index name
- Bash environment variable `COLUMNS` locked in Pipenv shell if exported. HOT 3
- Pipfile sections are sorted before adding packages with extras HOT 4
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 pipenv.