randomir / envie Goto Github PK
View Code? Open in Web Editor NEWPython virtual environments wrangler.
Home Page: http://envie.rtfd.io/
License: MIT License
Python virtual environments wrangler.
Home Page: http://envie.rtfd.io/
License: MIT License
Something like this has been (re-)implemented many times over, but it would be useful to support some kind of environment context switch (since python virtualenv activation is just that, in essence).
Consider integrating with existing solutions, or think of a way to elegantly extend envie
to support broader env context switch.
Is it possible to use python3 -m venv
approach when creating virtualenv for python3? It is much faster (0.936s vs 2.464s on my system).
I see it is at least not straight-forward to implement, but it would be a nice feature.
P.S. Thanks for this tool, looks like it is the virtualenv manager I was looking for. According to docs it should fit my workflow exactly...
Probably it should be removed both from docs and from the source. Its behaviour is default since virtualenv-1.7
(2011-11-30)
Make it easier to create environments based on not yet installed pythons.
While in an environment, trying to run envie manage.py shell
(django) will raise an error:
/usr/local/bin/envie: line 102: deactivate: command not found
It still works regardless, but it sticks out.
Trying to install and use envie via the Pipsi tool, doesnt work. It seems to get confused about the paths and might just need to have some small modifications made so that when envie is living inside its own virtualenv it can still function.
I installed it via an RPM https://build.opensuse.org/package/show/home:jayvdb:py-new/python-envie
~/tmp> . /usr/bin/envie
~/tmp> envie
Traceback (most recent call last):
File "/usr/bin/envie-tools", line 11, in <module>
from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
File "/usr/bin/envie-tools", line 11, in <module>
from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
File "/usr/bin/envie-tools", line 11, in <module>
from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
File "/usr/bin/envie-tools", line 11, in <module>
from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CNo environments found.
~/tmp> head /usr/bin/envie-tools
#!/usr/bin/python3 -s
from __future__ import print_function
import os
import sys
# ensure `envie` is accessible, without being installed via pip:
scriptsdir = os.path.dirname(os.path.abspath(__file__))
projectroot = os.path.normpath(os.path.join(scriptsdir, os.pardir))
sys.path.insert(0, projectroot)
~/tmp> python3 -c 'import envie.utils'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.