Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List dependencies correctly in distributions. #109

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

matz-e
Copy link
Contributor

@matz-e matz-e commented Sep 25, 2023

I noticed that when installing dask-mpi by itself, it does not come
with any dependencies, contrary to what setup.py hints at.

On a barebones cluster, I got this trying to set up a small reproducer:

-bash-4.2$ python3 -mvenv foobar; . ./foobar/bin/activate; pip install dask-mpi
Collecting dask-mpi
  Using cached dask_mpi-2022.4.0-py3-none-any.whl (11 kB)
Installing collected packages: dask-mpi
Successfully installed dask-mpi-2022.4.0
(foobar) -bash-4.2$ pip list
Package    Version
---------- --------
dask-mpi   2022.4.0
pip        22.0.4
setuptools 47.1.0

It seems that the code that actually specifies the dependencies has been
commented out for a while. This PR reactivates it.

Tested with python -mbuild -n (no build isolation due to the YAML
dependency for setup.py) and looking at the METADATA file of the
resulting wheel.

I noticed that when installing `dask-mpi` by itself, it does not come
with any dependencies, contrary to what `setup.py` hints at.

On a barebones cluster, I got this trying to set up a small reproducer:
```
-bash-4.2$ python3 -mvenv foobar; . ./foobar/bin/activate; pip install dask-mpi
Collecting dask-mpi
  Using cached dask_mpi-2022.4.0-py3-none-any.whl (11 kB)
Installing collected packages: dask-mpi
Successfully installed dask-mpi-2022.4.0
(foobar) -bash-4.2$ pip list
Package    Version
---------- --------
dask-mpi   2022.4.0
pip        22.0.4
setuptools 47.1.0
```

It seems that the code that actually specifies the dependencies has been
commented out for a while. This PR reactivates it.

Tested with `python -mbuild -n` (no build isolation due to the YAML
dependency for `setup.py`) and looking at the `METADATA` file of the
resulting wheel.
@jacobtomlinson
Copy link
Member

@kmpaul any idea why these are commented out? It looks like @andersy005 made the change some time ago.

@andersy005
Copy link
Member

thank you for working on this fix, @matz-e

@kmpaul any idea why these are commented out? It looks like @andersy005 made the change some time ago.

It appears that I commented out these lines as a temporary solution in this pull request, but I completely forgot to submit a follow-up pull request to address the issue I raised.

@andersy005 andersy005 merged commit 3a7f045 into dask:main Sep 25, 2023
5 checks passed
@matz-e matz-e deleted the specify-dependencies branch September 26, 2023 07:19
@kmpaul
Copy link
Collaborator

kmpaul commented Sep 27, 2023

Thanks for this, @matz-e! And thank you @andersy005 for you're quick fix! Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants