0

Sorry if this question has been asked before.

How can I run equivalent of pip install -e . in python code itself? Or install directly from the egg or setuptools if it's possible.

Currently I can programatically generate the *.egg_info for a project that specifies pyproject.toml or setup.py in this manner:

from setuptools import setup
from setuptools.dist import Distribution

distro: Distribution = setup(script_args=['egg_info'])

Can i extend the above code to run pip install -e . with the generated egg directory? Is that possible?

rv.kvetch
  • 9,940
  • 3
  • 24
  • 53

0 Answers0