Comments (9)
Seems to me this should be first built as an external tool (but not using
subprocess) , and if there are issues in pip or virtualenv that make that
difficult, we fix them. I think it's already pretty much all possible already,
using create_environment() and the RequirementSet API from pip. Once the
external tool has proved itself, then it could be considered to get merged
into pip or virtualenv.
Original Comment By: Anonymous
from virtualenv.
Oops, that was me ^^
Original Comment By: Carl Meyer
from virtualenv.
only creation is possible by some hacks, i don't see any way to handle
propperly invoking pip in the same way
Original Comment By: Ronny Pfannschmidt
from virtualenv.
Just for the record, an interesting project: http://github.com/thisismedium
/virtualenv-commands
Original Comment By: Jannis Leidel
from virtualenv.
Just to be clear, I don't think the APIs in pip are ideal for external use,
but I do think it's quite possible to use them externally. Just look at, say,
InstallCommand.run() and you can see how the RequirementSet class can be used
to build up a set of requirements for install, and then install them.
I think a lot of work could be done in pip to improve this, but it is possible
right now and I think the best way to improve it is to try with what's there.
Original Comment By: Carl Meyer
from virtualenv.
Oh, hm, I agree, an API for pip can lead to overengineering while a lot is
already there.
But an API for virtualenv would be useful to testing and automatic deployment
tools -- and I think this is where ronny is coming from.
Original Comment By: Jannis Leidel
from virtualenv.
Where is this going guys? Can I use create_environment() without fear?
from virtualenv.
https://github.com/sjkingo/virtualenv-api
Closely related to this issue.
from virtualenv.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions.
from virtualenv.
Related Issues (20)
- RuntimeError: no .dist-info python3.9 macos HOT 1
- Move to PyPA org on PyPI? HOT 11
- Add PKG_CONFIG_PATH to variables set by venv activate HOT 1
- Extra Closing Parenthesis in the Code
- deactivate command not available in shell scripts or sub-shells (activate script does not export "deactivate") HOT 1
- `try-first-with` behaves differently for `--python` full paths and version specs HOT 3
- post-create hooks for discoverers/discovery HOT 1
- not work properly with pywin32 HOT 2
- Update for platformdirs v4 HOT 14
- pytest fails in five units HOT 14
- tests/unit/create/test_creator.py::test_create_no_seed --creator venv fails on Python 3.13 HOT 7
- cpython3_win_embed test failures with Python 3.13 HOT 6
- mkvirtualenv fails with: ModuleNotFoundError: No module named 'platformdirs' HOT 3
- venv base-executable path does not resolve symlinks using realpath() HOT 2
- Values in `pyvenv.cfg` do not reflect the real paths on case insensitive file systems HOT 5
- Virtualenv should support workon command by default. HOT 3
- https://bootstrap.pypa.io/virtualenv/3.11/virtualenv.pyz returns "Error 503 No healthy backends" HOT 3
- (Bitcoin wallet )15RFhHGkrB8F3TTtt4KgsyB5Mn3UQrGQnz
- Virtualenv fails to create environment on Windows HOT 3
- Discovery with a generic spec fails to find specific python
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 virtualenv.