anon_swe
anon_swe

Reputation: 9355

Pipenv: Specify local version of Python package in Pipfile

I have a Pipfile that looks something like this:

[packages]
pyarrow = "*"
tensorflow = "==1.8.0"
h5py = "*"

I have another package, xyz, that exists in a GitHub repo. I've cloned that repo, made some edits to it, and now want to include the edited version in my Pipfile. If it helps, I also have the modified version of xyz in a branch on GitHub.

How might I do this?

Upvotes: 2

Views: 2159

Answers (1)

Laurentiu Soica
Laurentiu Soica

Reputation: 359

What worked for me was to reference the dependency by path:

[packages]
xyz = {path = '../xyz',editable = true}

Then:

pipenv --rm
pipenv lock
pipenv install

I hit an issue where path is limited to 8 chars or something like that. My workaround was to to a softlink to the real package location so that it fits in those 8 chars.

Upvotes: 2

Related Questions