Skip to main content

dirty hack of pipenv

Project description

pipenv-d: A dirty hack of pipenv

pipenv-d is a dirty hack of pipenv.

TL;DR, I want this feature, so pipenv can support multiple platform-specific lock files.

Why? Because some of my colleagues are using x86_64 machine and some are using Apple silicon (such as m1). As a result, when some of them lock dependencies on one machine, high chances is that the lock file may not work on the others, especially for machine learning applications which heavily rely on extension modules (Cython, pybind11, Numba..etc) and are very platform-specific.

I am just so tired of fixing dependency issues for them. I NEED platform-specific lock file support ASAP.

Installation

  • via pip
$ python3 -m pip install pipenv-d

Usage

Simple, whenever you want to run pipenv in the console, replace it with pipenv-d.

pipenv-d works exactly the same as pipenv except that it will create platform-specific lock file in your project instead of single Pipfile.lock.

Demo

  • install packages in your project with pipenv-d install-packages

  • platform-specific lock file will be generated in .pipenv.d/ lock-files

  • To regenerate the virtual environment, simply run pipenv-d install again, just like what you would do with pipenv. reinstall shell

How it works?

Simple, everytime pipenv generate a Pipfile.lock, move it to .pipenv.d directory and give it a platform-specific name.

If any platform-specific-named lock file found in .pipenv.d when pipenv-d is executed, copy the content to Pipfile.lock in the working directory and invoke pipenv command afterward.

After pipenv exits, move Pipfile.lock back to .pipenv.d.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipenv-d-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pipenv_d-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pipenv-d-0.0.4.tar.gz.

File metadata

  • Download URL: pipenv-d-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pipenv-d-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fee433b64895215134de5d27186ace50a9d87bf371316057d24fd4fe52f687d5
MD5 13bd80ffd23893445910202fc146393b
BLAKE2b-256 c030cdfea643e3e7097cbc6215380995b8e07453d04072ae04feee74b22b186d

See more details on using hashes here.

File details

Details for the file pipenv_d-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pipenv_d-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pipenv_d-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56f91d747585a6151e9ec3a309b9c87b9002b1dc08a7a0754dbd11a06e63ebbb
MD5 a086e4c15d83cf7603e38a51d54d440b
BLAKE2b-256 bd73c3b22ab0b97884ad1c98c40c1b59bb48b023002a7bb9d902c9b513896cce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page