Closed pvelasco closed 4 years ago
Hi,
Thanks for writing! Gah, I'd hoped that the exec() trick would keep from running __init__.py
but I guess not. I think another fix would be to just get rid of version.py
and put the version number in _metadata.py
.
I've also been contacted (just today! Maybe by someone in your group?) by someone who may have another fix for this; regardless, though, I don't want to be importing stuff in setup.py
.
I'll give a try to fixing this (and also see what the other PR has) and let you know what turns out.
Okay, I think this is closed by 414ddf7a6ec3050203a05741ac43180ebb6e915f and will be further addressed by PR #32. We'll get a new release up once we've got everything merged and cleaned up.
Hi,
When trying to install
bioread
on a clean python installation (Docker imagepython:3.7-slim
) viapip
:it gives the following error:
setup.py
runsbioread/_metadata.py
._metadata.py
, tries to importbioread/version.py
: https://github.com/uwmadison-chm/bioread/blob/4641503e0c97df51551be224ceddcbad6963080f/bioread/_metadata.py#L13 Importingbioread/version.py
runsbioread/__init__.py
, which in turn importsbioread/reader.py
: https://github.com/uwmadison-chm/bioread/blob/4641503e0c97df51551be224ceddcbad6963080f/bioread/__init__.py#L13 And, finally,bioread/reader.py
importsnumpy
: https://github.com/uwmadison-chm/bioread/blob/4641503e0c97df51551be224ceddcbad6963080f/bioread/reader.py#L18So, basically, to install
bioread
you neednumpy
installed; it is not enough to include it in theinstall_requires
.I guess the way to fix this would be to either read the version from a file not in the
bioread
folder (so thatbioread/__init__.py
doesn't get executed), or to remove theimport reader
frombioread/__init__.py
.