alchemistry / alchemlyb

the simple alchemistry library
https://alchemlyb.readthedocs.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

Make pip test work in M1 Mac #309

Closed xiki-tempula closed 1 year ago

xiki-tempula commented 1 year ago

I'm preparing the 2.0.1 release, I tag it as 2.0.1 and upload it to test.pypi.org. Then I pip install the package locally with pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple alchemlyb=="2.0.1" Then I run the test with pytest --pyargs alchemlyb

However, the test would stuck indefinitely at tests/test_workflow_ABFE.py, where it seems to be stuck at

  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/site-packages/alchemlyb/tests/test_workflow_ABFE.py", line 39, in test_nofilematch
    ABFE(
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/site-packages/alchemlyb/workflows/abfe.py", line 85, in __init__
    self.file_list = list(glob(reg_exp, recursive=True))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 28, in glob
    return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 97, in _iglob
    for name in glob_in_dir(_join(root_dir, dirname), basename, dir_fd, dironly,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 106, in _glob1
    names = _listdir(dirname, dir_fd, dironly)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 177, in _listdir
    return list(it)
           ^^^^^^^^
  File "/Users/zhiyiwu/miniconda3_x86/envs/test/lib/python3.11/glob.py", line 160, in _iterdir
    for entry in it:
KeyboardInterrupt

However, if I go to the source code and run pip install -e . to install this package, and then run it works pytest --pyargs alchemlyb completely fine.