Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an Interface for Virtual Environments #22

Open
ebresie opened this issue Jun 5, 2022 · 5 comments
Open

Provide an Interface for Virtual Environments #22

ebresie opened this issue Jun 5, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@ebresie
Copy link
Owner

ebresie commented Jun 5, 2022

This feature would be to provide a user interface to interface with Virtual Environments. This may be a sub-case of Python Platform functionality.

It may need to account for basic python virtual environments as well as anaconda-based environments

References

@ebresie ebresie added the enhancement New feature or request label Jun 5, 2022
@ebresie
Copy link
Owner Author

ebresie commented Jun 6, 2022

From https://medium.com/@dbrailo/virtual-environments-in-python-2773ac8dd9ae

As of Python 3.3 can create vend with

python3 -m venv name-of-venv

May need to have a New..venv option used within the project folder and an activate/deactivate option

Avoid checking in venv folders (i.e. add to gitignore)

"Pip list
in the environment will list its modules/packages"

New requirements.txt may be an option or used when adding dependencies indirectly

"To install the requirements.txt, run:

"pip3 install -r requirements.txt"

"to create the requirements.txt to have all the dependencies you have installed for that project, you can easily run:

"pip3 freeze > requirements.txt
And you will have the .txt with all the dependencies and its versions inside."

"basic process of using a venv is to create it → activate it → install the libraries we need / installing the requirements.txt → deactivate"

Maybe can also use when setting up LSP server

@ebresie
Copy link
Owner Author

ebresie commented Aug 6, 2022

Based on Python Virtual Environment Primer

Have to accommodate multiple flavors of "venv" (i.e. standard python venv module, conda and virtualenv. May need a "virutal environment interface" with implementation for each of the above flavors.

@ebresie
Copy link
Owner Author

ebresie commented Aug 6, 2022

Need to decide if should include venv within the list of platforms or keep them separately. The benefits of coming is for all practical purposes a venv is another "instance" of a python platform with specific pre-included dependencies and could be treated as such but the draw back is the baseline pythons and the venv could provide excessive configurations which may get confusing as more environments are setup. Maybe a combination is to have a check box to include venvs

@ebresie
Copy link
Owner Author

ebresie commented Aug 27, 2022

May want to leverage a "venv" with the LSP modules included for use in plugin functionality.

@ebresie
Copy link
Owner Author

ebresie commented Aug 27, 2022

May need to consider egg/wheel packaging. See https://packaging.python.org/en/latest/discussions/wheel-vs-egg/ but this may be separate from virtual environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant