Skip to content

Latest pip versions doesn't support --build option #1831

@de-bug

Description

@de-bug

Got the related error on Fedora 34 (Python v3.9). Running command:
fpm --debug -s python -t rpm --debug --iteration 1 --python-install-lib /usr/lib/python3.9/site-packages --python-bin /bin/python3 --python-package-name-prefix python3 --no-python-fix-name --debug-workspace gcalcli

The result looks like:

Trying to download {:package=>"gcalcli", :level=>:info, :file=>"fpm/package/python.rb", :line=>"126", :method=>"download_if_necessary"}
using pip {:pip=>["/bin/python3", "-m", "pip"], :level=>:debug, :file=>"fpm/package/python.rb", :line=>"144", :method=>"download_if_necessary"}
Running command {:args=>["/bin/python3", "-m", "pip", "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-i", "https://pypi.python.org/simple", "--build", "/tmp/package-python-build-06a618cebd821ff20c7455670df692b64cfd71c108bf4189955925baa3d6/gcalcli", "gcalcli"], :level=>:debug, :file=>"fpm/util.rb", :line=>"138", :method=>"execmd"}
Process is running {:pid=>566215, :level=>:debug, :file=>"fpm/util.rb", :line=>"147", :method=>"execmd"}
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly
combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333. {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"47", :method=>"block in pipe"}
Looking in indexes: https://pypi.python.org/simple {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"47", :method=>"block in pipe"}
Collecting gcalcli {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"47", :method=>"block in pipe"}
  File was already downloaded /home/svr/tmp/fpm/gcalcli-4.3.0.tar.gz {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"47", :method=>"block in pipe"}
Successfully downloaded gcalcli {:level=>:info, :file=>"cabin/mixins/pipe.rb", :line=>"47", :method=>"block in pipe"}
plugin directory {:plugin=>"python", :pathtype=>:build_path, :path=>"/tmp/package-python-build-06a618cebd821ff20c7455670df692b64cfd71c108bf4189955925baa3d6", :file=>"fpm/command.rb", :line=>"512", :method=>"each"}
/home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/package/python.rb:184:in 'download_if_necessary': Unexpected directory layout after easy_install. Maybe file a bug? The directory is /tmp/package-python-build-06a618cebd821ff20c7455670df692b64cfd71c108bf4189955925baa3d6 (RuntimeError)
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/package/python.rb:98:in `input'
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/command.rb:352:in `block in execute'
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/command.rb:351:in `each'
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/command.rb:351:in `execute'
        from /home/svr/.gem/ruby/gems/clamp-1.0.1/lib/clamp/command.rb:68:in `run'
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/lib/fpm/command.rb:574:in `run'
        from /home/svr/.gem/ruby/gems/clamp-1.0.1/lib/clamp/command.rb:133:in `run'
        from /home/svr/.gem/ruby/gems/fpm-1.13.1/bin/fpm:7:in `<top (required)>'
        from /home/svr/bin/fpm:23:in `load'
        from /home/svr/bin/fpm:23:in `<main>'

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