PaNOSC-ViNYL / SimEx

Start-to-end photon experiment simulation platform
https://simex.readthedocs.io/
GNU General Public License v3.0
26 stars 25 forks source link

Biopython warning #235

Closed JunCEEE closed 3 years ago

JunCEEE commented 3 years ago

Got an error

/gpfs/exfel/data/user/juncheng/miniconda3/envs/test-s/lib/python3.7/site-packages/Bio/init.py:126: BiopythonWarning: You may be importing Biopython from inside the source tree. This is bad practice and might lead to downstream issues. In particular, you might encounter ImportErrors due to missing compiled C extensions. We recommend that you try running your code from outside the source tree. If you are outside the source tree then you have a setup.py file in an unexpected directory: /gpfs/exfel/data/user/juncheng/miniconda3/envs/test-s/lib/python3.7/site-packages

After removing lib/python3.7/site-packages/setup.py, the problem was solved. Could we remove the setup.py safely here?

JunCEEE commented 3 years ago

Fixed by excluding it in CMakeLists.txt https://github.com/PaNOSC-ViNYL/SimEx/commit/e8fd9313c692b49df3174bb1de20c0f301c00fb9