Skip to content

Regression in installer - Directory not empty #4998

@jaraco

Description

@jaraco

Seems like this may be failing to catch something, causing later failures in install_as_egg

I 05-14 20:55:45 executor.py:331]       Traceback (most recent call last):
I 05-14 20:55:45 executor.py:331]         File "<string>", line 2, in <module>
I 05-14 20:55:45 executor.py:331]         File "<pip-setuptools-caller>", line 35, in <module>
I 05-14 20:55:45 executor.py:331]         File "/tmp/tmpuzviy574/setup.py", line 154, in <module>
I 05-14 20:55:45 executor.py:331]           setuptools.setup(
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/__init__.py", line 114, in setup
I 05-14 20:55:45 executor.py:331]           _install_setup_requires(attrs)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in _install_setup_requires
I 05-14 20:55:45 executor.py:331]           _fetch_build_eggs(dist)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/__init__.py", line 92, in _fetch_build_eggs
I 05-14 20:55:45 executor.py:331]           dist.fetch_build_eggs(dist.setup_requires)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/dist.py", line 766, in fetch_build_eggs
I 05-14 20:55:45 executor.py:331]           return _fetch_build_eggs(self, requires)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/installer.py", line 45, in _fetch_build_eggs
I 05-14 20:55:45 executor.py:331]           resolved_dists = [_fetch_build_egg_no_warn(dist, req) for req in needed_reqs]
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/installer.py", line 45, in <listcomp>
I 05-14 20:55:45 executor.py:331]           resolved_dists = [_fetch_build_egg_no_warn(dist, req) for req in needed_reqs]
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/installer.py", line 119, in _fetch_build_egg_no_warn
I 05-14 20:55:45 executor.py:331]           wheel.install_as_egg(dist_location)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/wheel.py", line 122, in install_as_egg
I 05-14 20:55:45 executor.py:331]           self._install_as_egg(destination_eggdir, zf)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/wheel.py", line 130, in _install_as_egg
I 05-14 20:55:45 executor.py:331]           self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
I 05-14 20:55:45 executor.py:331]         File "/home/runner/test-env/lib/python3.10/site-packages/setuptools/wheel.py", line 175, in _convert_metadata
I 05-14 20:55:45 executor.py:331]           os.rename(dist_info, egg_info)
I 05-14 20:55:45 executor.py:331]       OSError: [Errno 39] Directory not empty: '/tmp/tmpuzviy574/.eggs/wheel-0.45.1-py3.10.egg/wheel-0.45.1.dist-info' -> '/tmp/tmpuzviy574/.eggs/wheel-0.45.1-py3.10.egg/EGG-INFO'

source: https://github.com/skypilot-org/skypilot/actions/runs/15027265800/job/42243638678 (passed on setuptools 80.4.0)

Originally posted by @cg505 in #4997 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions