Technically it should work - the key was to exclude some of the files that
are common (airflow/__init__.py) and I have done that by excluding the
"airflow" package from the packages found by find_packages. That was pretty
much all the trick needed eventually.

One watchout - what does not work for sure is installing such packages for
development purpose (-e/--editable).
Installing released packages from PyPi stores the files in a single folder
(/usr/local/lib/pythonX.Y/site-packages usually). So sharing subfolders is
fine as long as there are no overlapping files.

But if you install two such packages for development (-e) then they are
physically in different directories and then it really depends on the
sequence of installation. Here is SO entry about it:
https://stackoverflow.com/questions/13400291/namespace-packages-and-pip-install-e,
the related PIP issue https://github.com/pypa/pip/issues/3 and the
workaround is there: https://github.com/pypa/pip/pull/541 (--egg option)
/
J.

On Mon, Feb 10, 2020 at 11:10 AM Ash Berlin-Taylor <[email protected]> wrote:

> I'll test it, but I think having two different ways of installing the same
> file is going to mightly confuse pip.
>


-- 

Jarek Potiuk
Polidea <https://www.polidea.com/> | Principal Software Engineer

M: +48 660 796 129 <+48660796129>
[image: Polidea] <https://www.polidea.com/>

Reply via email to