Skip to content

Instantly share code, notes, and snippets.

@saml
Last active May 29, 2019 18:58
Show Gist options
  • Save saml/73d0bb267dec5063daeffa15ea53e65d to your computer and use it in GitHub Desktop.
Save saml/73d0bb267dec5063daeffa15ea53e65d to your computer and use it in GitHub Desktop.
monorepo/
        app-dir/
                apppkg/__init__.py
        lib-dir/
                src/
                        libpkg/__init__.py

Working directory is: monorepo/app-dir/ How would import libpkg work without modifying PYTHONPATH? And, I also want to checkout a particular git branch of libpkg.

pip install -e git+file://$PWD/[email protected]&subdirectory=lib-dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment