Open Teej42 opened 5 years ago
Add a rm -rf $SP_DIR/tests
to the build script on both packages.
Add a
rm -rf $SP_DIR/tests
to the build script on both packages.
Yep. Looks like both packages are shipping a module named tests
. That can be worked around like @isuruf mentioned but, ideally, it should be fixed upstream.
Also, it is odd that pip
does not warm about overwriting that module. I guess that the last on installed wins?
@ocefpaf pip copies the files to tests folder. init.py is an empty file and pose no problem and other test files are copied into the tests folder as is retaining the ones from earlier installations.
Add a
rm -rf $SP_DIR/tests
to the build script on both packages.
@isuruf , I think conda-forge should not error out. There are numerous packages with tests folder in them and having to fail installation is not a good idea. The behavior we currently have in pip is better and no problems seen or reported from users so far. A warning that tests folder already exist sounds better, along with copying the files recursively.
@ocefpaf pip copies the files to tests folder. init.py is an empty file and pose no problem and other test files are copied into the tests folder as is retaining the ones from earlier installations.
Quite messy!
@isuruf , I think conda-forge should not error out.
It is not conda-forge, it is conda
. And it should error out. We cannot have a hybrid module named tests
that has everything that other packages can copy into it. If someone claims the name tests
for a package this would break that package. In the best case scenario this breaks these packages tests.
There are numerous packages with tests folder in them and having to fail installation is not a good idea.
It is. The packages are broken and should not ship a module named tests.
The behavior we currently have in pip is better and no problems seen or reported from users so far.
Nope. That is quite dangerous!
@conda-forge/core
This was reported to me by the maintainer for ibm_db:
When you install this package on top of the
JSON5
package, there will be a merge error on__init__.py
file. This issue is not present when usingpip
. Details:How exactly should we address this?
Thanks.