Coder Social home page Coder Social logo

local-development-of-python-package-and-dep's Introduction

Imagine you are developing project A, and project A depends on project B which you are also developing. How can you locally develop both at the same time?

This repo just shows a very basic example of that in Python (tested with Python 3.8.8).

repo-b -> This folder is an example of the repo for project B. It exposes a package called b.

repo-a -> This folder is an example of the repo for project A. It imports and uses b.

Directions:

  1. cd repo-b
  2. run python setup.py sdist bdist_wheel (actually i don't know if this is necessary or not)
  3. cd repo-a
  4. run pip uninstall --yes b && pip install -e ~/repos/local-development-of-python-package-and-dep/repo-b or similar
  5. run python main.py and observe that everything works

So the real secret is the -e or --editable flag.

References:

local-development-of-python-package-and-dep's People

Contributors

mareoraft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pointofpresence

local-development-of-python-package-and-dep's Issues

Thanks

Not an issue, but I found no other way of saying thanks for this package. Helped me sort out how to solve some issues I had.

Feel free to remove this issue asap :).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.