jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.09k stars 1.07k forks source link

fpm not allowing extra_index_url option to pip #2005

Open matthewsht opened 1 year ago

matthewsht commented 1 year ago

We have an internal (not on pypi) python wheel I'd like to turn into an rpm with fpm.

fpm --version

1.15.1

pip --version

pip 21.2.3 from /usr/lib/python3.9/site-packages/pip (python 3.9)

export PIP_EXTRA_INDEX_URL=https://INTERNAL_SERVER/python_repo [root@warehouse13 ~]# fpm -s python -t rpm hwid Process failed: python failed (exit code 1). Full command was:["python", "-m", "pip", "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-d", "/tmp/package-python-build-60072ca484466489896dbc921de42d0fa93e3b3f52f68995c80da1ed290d", "-i", "https://pypi.python.org/simple", "hwid"] {:level=>:error}

Even with PIP_EXTRA_INDEX_URL set, fpm's usage of pip appears to block that environment variable.

I tried with the equivalent of ~/.config/pip/pip.conf [global] extra_index_url=https://INTERNAL_SERVER/python_repo

but no luck.

I'm a new user but a quick search of existing issues didn't show anything.