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

pup tries to pip install any file in ./build/pup/? Fails when the OS creates metadata files #241

Open
carlosperate opened this issue Nov 15, 2022 · 0 comments

Comments

@carlosperate
Copy link
Member

Running pup inside a docker container, mounting the macOS host filesystem (for the Mu repo) into the container:

docker run -v $(pwd):/home --rm ghcr.io/mu-editor/mu-appimage:2022.05.01 bash -c "pip install . && python -m mu.wheels --package && pip install pup==1.0.0a17 && pup package --launch-module=mu --nice-name='Mu Editor' --icon-path=./mu/resources/images/icon.png --license-path=./LICENSE ."

When it comes to the pup part:

20221115 131057 I pup pup 1.0.0a17 - starting with PID=111
20221115 131057 I pup.api Package '.': starting.
20221115 131057 I pup.plugins.metadata Collecting metadata for '.'.
20221115 131057 I pup.plugins.metadata Packaging local project at '/home'.
20221115 131057 I pup.plugins.metadata About to run '/python/bin/python3.8 -m pip wheel --no-deps /home'.
20221115 131057 I pup.plugins.metadata pip out: Processing /home
20221115 131057 I pup.plugins.metadata pip out:   Preparing metadata (setup.py): started
20221115 131059 I pup.plugins.metadata pip out:   Preparing metadata (setup.py): finished with status 'done'
20221115 131059 I pup.plugins.metadata pip out: Building wheels for collected packages: mu-editor
20221115 131059 I pup.plugins.metadata pip out:   Building wheel for mu-editor (setup.py): started
20221115 131117 I pup.plugins.metadata pip out:   Building wheel for mu-editor (setup.py): finished with status 'done'
20221115 131117 I pup.plugins.metadata pip out:   Created wheel for mu-editor: filename=mu_editor-1.1.2-py3-none-any.whl size=49860106 sha256=9e88c9cb7d080363dca3fb9e89f8d60cfe8ff3be6e5da78340f585180730576e
20221115 131117 I pup.plugins.metadata pip out:   Stored in directory: /tmp/pip-ephem-wheel-cache-dkyypzci/wheels/ca/d0/93/fbd585043e7e8c744cf5e0d3d167303a7cb9893e8a403c9bb8
20221115 131117 I pup.plugins.metadata pip out: Successfully built mu-editor
20221115 131118 I pup.plugins.metadata pip err: WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
20221115 131118 I pup.plugins.metadata pip err: You should consider upgrading via the '/python/bin/python3.8 -m pip install --upgrade pip' command.
20221115 131118 C pup Execution failure: Not a known wheel archive format or installed .dist-info: /home/build/pup/.DS_Store
20221115 131118 C pup Traceback below:
Traceback (most recent call last):
  File "/python/lib/python3.8/site-packages/pup/__main__.py", line 31, in wrapper
    exit_code = command_function(*args, **kw)
  File "/python/lib/python3.8/site-packages/pup/__main__.py", line 82, in package
    return api.package(
  File "/python/lib/python3.8/site-packages/pup/api.py", line 60, in package
    dsp.collect_src_metadata()
  File "/python/lib/python3.8/site-packages/pup/dispatcher.py", line 94, in collect_src_metadata
    return self._invoke_plugin('pup.metadata')
  File "/python/lib/python3.8/site-packages/pup/dispatcher.py", line 68, in _invoke_plugin
    return plugin(self._ctx, self, **kwargs)
  File "/python/lib/python3.8/site-packages/pup/plugins/metadata.py", line 78, in __call__
    ctx.src_metadata = pkginfo.Wheel(wheel_file)
  File "/python/lib/python3.8/site-packages/pkginfo/wheel.py", line 16, in __init__
    self.extractMetadata()
  File "/python/lib/python3.8/site-packages/pkginfo/distribution.py", line 115, in extractMetadata
    data = self.read()
  File "/python/lib/python3.8/site-packages/pkginfo/wheel.py", line 42, in read
    raise ValueError('Not a known wheel archive format or '
ValueError: Not a known wheel archive format or installed .dist-info: /home/build/pup/.DS_Store
20221115 131118 I pup pup 1.0.0a17 - done

The .DS_Store file was created by macOS, so it looks like pup tries to pip install any file in the ./build/pup/ directory?

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

No branches or pull requests

1 participant