question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to install dependencies to the system site packages

See original GitHub issue

It is not always easy to have some packages installed inside the virtualenv + having the virtualenv inside the docker container, which only runs your app, makes no sense.

It would be nice to have an option i.e. --system to deploy your package right inside the system without venv.

Now solving it in a stupid way:

RUN mkdir -p /root/.cache/pypoetry/virtualenvs/phex-recutech-mcs-py3.6/lib/python3.6 
RUN ln -sf /usr/local/lib/python3.6/site-packages /root/.cache/pypoetry/virtualenvs/phex-recutech-mcs-py3.6/lib/python3.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

27reactions
wyl8899commented, Jan 8, 2020

For those who find here later, the config command worked for me was:

poetry config virtualenvs.create false
25reactions
sdispatercommented, Jun 19, 2018

You can disable the automatic creation of virtualenvs by using:

poetry config settings.virtualenvs.create false
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing packages using pip and virtual environments
Installing packages using pip and virtual environments¶. This guide discusses how to install packages using pip and a virtual environment manager: either ...
Read more >
Installing local packages with Python virtualenv --system-site ...
What I would like to do is create a virtualenv that "inherits" the system packages installed via yum but allows me to pip...
Read more >
Using Python's pip to Manage Your Projects' Dependencies
By chaining the packages rptree and codetiming in the pip install command, you install both packages at once. You can add as many...
Read more >
How to Package Python dependencies with PIP setuptools
Learn step by step how to package a Python project with PIP setuptools and what are the alternatives out there for Python package...
Read more >
pip install - pip documentation v22.3.1
Each item identified is added to the set of requirements to be satisfied by ... pip offers a number of package index options...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found