veit/jupyter-tutorial

Replace pipenv

veit opened this issue · 6 comments

veit commented

Since pipenv doesn’t seem to be further developed (see If this project is dead, just tell us #4058 it’s time to look around for alternatives.

  • pip-tools for dependency management including automation of updates.
  • venv, possibly supplemented by pex or shiv.
  • pipdeptree print the dependency tree of the installed packages

Unfortunately, Poetry can’t install packages along with their dependencies in an explicitly specified virtual environment. However, this makes CI much easier.

b0g3r commented

Poetry can install packages to existing venv: just activate it and try poetry install

Also, you can explicitly configure poetry to use your venv, or to use system wide python, see https://python-poetry.org/docs/configuration/ (virtualenvs.* params)

veit commented

@b0g3r: I know, but that’s not suitable for build servers and in CI.

b0g3r commented

Why? We use poetry for installing project dependencies to system-wide python as described here:
https://python-poetry.org/docs/managing-environments/#switching-between-environments

veit commented

However, I need the ability to install the current package along with its dependencies in a specific environment that I can completely specify, including architecture and compilers.

veit commented

Hi @orsinium, thank you for the hint. It’s an Interesting project, but unfortunately I still need Python2 support: many research institutes I know still have legacy Python2 projects.