pipenv icon indicating copy to clipboard operation
pipenv copied to clipboard

Be able to install without Pipfile

Open Siecje opened this issue 3 years ago • 4 comments

Issue description

I can't install packages with just Pipfile.lock, I also need Pipfile.

During deployment I am doing.

PIP_NO_CACHE_DIR=false PIPENV_VENV_IN_PROJECT=true pipenv install --ignore-pipfile

It returns a 0 status code, creates a Pipfile file but doesn't install any packages.

.venv/bin/python -m pip freeze
# no output

Expected result

All packages in Pipfile.lock are installed. Pipfile file is not created.

Actual result

It returns a 0 status code, creates a Pipfile file but doesn't install any packages.

.venv/bin/python -m pip freeze
# no output

Siecje avatar Feb 16 '22 17:02 Siecje

@Siecje pipenv install will try to lock from the Pipfile. What if you replace that part with pipenv sync which installs dependencies from the lock file?

matteius avatar Feb 16 '22 17:02 matteius

@Siecje I just tested this and it turns out that pipenv sync won't install anything without the Pipfile, maybe because it doesn't know what is a package and what is a dev package without the Pipfile?

matteius avatar Feb 17 '22 20:02 matteius

@Siecje What is the use case for not including the Pipfile as well during the build process?

matteius avatar Feb 17 '22 20:02 matteius

I didn't think I needed it, especially with --ignore-pipfile.

I assumed I only needed the one file when using pipenv.

Siecje avatar Feb 21 '22 02:02 Siecje