You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here’s a GitHub issue description for the problem you're encountering with fpm:
Title: fpm Fails to Generate Package for Python When Package is Downloaded in .zip Format
Description:
I'm experiencing an issue when using fpm to create a package for a Python project. Specifically, the failure occurs when pip download fetches the package in .zip format rather than .tar.gz. The fpm process fails with an unexpected directory layout error, as shown below:
/usr/local/rvm/gems/ruby-2.7.1/gems/fpm-1.15.1/lib/fpm/package/python.rb:177:in `download_if_necessary': Unexpected directory layout after `pip download ...`. This might be an fpm bug? The directory is /tmp/package-python-build-xxxxxxxx (RuntimeError)
Steps to Reproduce:
Run fpm to create a package for a Python module, which pip downloads in .zip format:
fpm -s python -t deb <package_name>
If pip downloads the package as a .zip archive, the process fails with a directory layout error.
Expected Behavior:
fpm should handle Python packages regardless of whether they are downloaded as .zip or .tar.gz and correctly generate the package.
Actual Behavior:
The process fails with the following error:
Unexpected directory layout after `pip download ...`
Workaround:
Manually extracting the .zip file and converting it to .tar.gz allows the process to succeed. However, this adds an unnecessary manual step to the packaging process.
Environment:
fpm version: 1.15.1
Ruby version: 2.7.1
Python version: (whichever is relevant)
OS: (provide your OS and version)
Additional Context:
This issue seems to arise specifically with .zip formatted packages. fpm works fine when the package is downloaded in .tar.gz format.
This description should help developers understand and reproduce the issue while providing sufficient context for further investigation.
The text was updated successfully, but these errors were encountered:
Here’s a GitHub issue description for the problem you're encountering with
fpm
:Title:
fpm
Fails to Generate Package for Python When Package is Downloaded in.zip
FormatDescription:
I'm experiencing an issue when using
fpm
to create a package for a Python project. Specifically, the failure occurs whenpip download
fetches the package in.zip
format rather than.tar.gz
. Thefpm
process fails with an unexpected directory layout error, as shown below:Steps to Reproduce:
Run
fpm
to create a package for a Python module, whichpip
downloads in.zip
format:If
pip
downloads the package as a.zip
archive, the process fails with a directory layout error.Expected Behavior:
fpm
should handle Python packages regardless of whether they are downloaded as.zip
or.tar.gz
and correctly generate the package.Actual Behavior:
The process fails with the following error:
Workaround:
Manually extracting the
.zip
file and converting it to.tar.gz
allows the process to succeed. However, this adds an unnecessary manual step to the packaging process.Environment:
fpm
version: 1.15.1Additional Context:
This issue seems to arise specifically with
.zip
formatted packages.fpm
works fine when the package is downloaded in.tar.gz
format.This description should help developers understand and reproduce the issue while providing sufficient context for further investigation.
The text was updated successfully, but these errors were encountered: