python - Python packages, PyPI, etc
Supported Uses in FPM
fpm supports using python only as an input type. This means you can convert
python input packages to output packages like deb, rpm, and more.
python-specific command line flags
--python-bin PYTHON_EXECUTABLEThe path to the python executable you wish to run.
--[no-]python-dependenciesInclude requirements defined by the python package as dependencies.
--python-disable-dependency python_package_nameThe python package name to remove from dependency list
--[no-]python-downcase-dependenciesShould the package dependencies be in lowercase?
--[no-]python-downcase-nameShould the target package name be in lowercase?
--python-easyinstall EASYINSTALL_EXECUTABLEThe path to the easy_install executable tool
--[no-]python-fix-dependenciesShould the package dependencies be prefixed?
--[no-]python-fix-nameShould the target package name be prefixed?
--python-install-bin BIN_PATH(DEPRECATED, does nothing) The path to where python scripts should be installed to.
--python-install-data DATA_PATH(DEPRECATED, does nothing) The path to where data should be installed to. This is equivalent to ‘python setup.py –install-data DATA_PATH
--python-install-lib LIB_PATH(DEPRECATED, does nothing) The path to where python libs should be installed to (default depends on your python installation). Want to find out what your target platform is using? Run this: python -c ‘from distutils.sysconfig import get_python_lib; print get_python_lib()’
--[no-]python-internal-pipUse the pip module within python to install modules - aka ‘python -m pip’. This is the recommended usage since Python 3.4 (2014) instead of invoking the ‘pip’ script
--[no-]python-obey-requirements-txtUse a requirements.txt file in the top-level directory of the python package for dependency detection.
--python-package-name-prefix PREFIXName to prefix the package name with.
--python-package-prefix NAMEPREFIX(DEPRECATED, use –package-name-prefix) Name to prefix the package name with.
--python-pip PIP_EXECUTABLEThe path to the pip executable tool. If not specified, easy_install is used instead
--python-pypi PYPI_URLPyPi Server uri for retrieving packages.
--python-scripts-executable PYTHON_EXECUTABLE(DEPRECATED) Set custom python interpreter in installing scripts. By default distutils will replace python interpreter in installing scripts (specified by shebang) with current python interpreter (sys.executable). This option is equivalent to appending ‘build_scripts –executable PYTHON_EXECUTABLE’ arguments to ‘setup.py install’ command.
--python-setup-py-arguments setup_py_argument(DEPRECATED) Arbitrary argument(s) to be passed to setup.py
--python-trusted-host PYPI_TRUSTEDMark this host or host:port pair as trusted for pip