{"record":{"id":"e2a4e626899951ae","repo":"jordansissel/fpm","slug":"using-deprecated-flag-install-bin","errorCode":null,"errorMessage":"Using deprecated flag --install-bin","messagePattern":"Using deprecated flag --install-bin","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"lib/fpm/package/python.rb","lineNumber":56,"sourceCode":"    logger.warn(\"Using deprecated flag: --package-prefix. Please use \" \\\n                 \"--package-name-prefix\")\n    value\n  end\n  option \"--package-name-prefix\", \"PREFIX\", \"Name to prefix the package \" \\\n    \"name with.\", :default => \"python\"\n  option \"--fix-name\", :flag, \"Should the target package name be prefixed?\",\n    :default => true\n  option \"--fix-dependencies\", :flag, \"Should the package dependencies be \" \\\n    \"prefixed?\", :default => true\n\n  option \"--downcase-name\", :flag, \"Should the target package name be in \" \\\n    \"lowercase?\", :default => true\n  option \"--downcase-dependencies\", :flag, \"Should the package dependencies \" \\\n    \"be in lowercase?\", :default => true\n\n  option \"--install-bin\", \"BIN_PATH\", \"(DEPRECATED, does nothing) The path to where python scripts \" \\\n    \"should be installed to.\" do\n    logger.warn(\"Using deprecated flag --install-bin\")\n  end\n  option \"--install-lib\", \"LIB_PATH\", \"(DEPRECATED, does nothing) The path to where python libs \" \\\n    \"should be installed to (default depends on your python installation). \" \\\n    \"Want to find out what your target platform is using? Run this: \" \\\n    \"python -c 'from distutils.sysconfig import get_python_lib; \" \\\n    \"print get_python_lib()'\" do\n    logger.warn(\"Using deprecated flag --install-bin\")\n  end\n\n  option \"--install-data\", \"DATA_PATH\", \"(DEPRECATED, does nothing) The path to where data should be \" \\\n    \"installed to. This is equivalent to 'python setup.py --install-data \" \\\n    \"DATA_PATH\" do\n    logger.warn(\"Using deprecated flag --install-bin\")\n  end\n\n  option \"--dependencies\", :flag, \"Include requirements defined by the python package\" \\\n    \" as dependencies.\", :default => true\n  option \"--obey-requirements-txt\", :flag, \"Use a requirements.txt file \" \\","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/python.rb#L38-L74","documentation":"The python input target's --install-bin option is deprecated and does nothing. Its handler block only calls logger.warn and returns nil, so the BIN_PATH value is discarded — script locations are decided by the python build itself, not by this flag. The warning fires on each invocation that passes the flag.","triggerScenarios":"Passing `--install-bin <path>` to an fpm python-source build, e.g. `fpm -s python -t deb --install-bin /usr/bin requests`.","commonSituations":"Legacy build scripts from fpm versions where python bin/lib/data install paths were configurable; provisioning templates copied from very old fpm documentation.","solutions":["Remove --install-bin from the command; it has no effect on the produced package","Control script placement with the generic --prefix option or by staging files with -s dir","Update shared scripts and CI templates so the dead flag stops generating warning noise"],"exampleFix":"# before\nfpm -s python -t deb --install-bin /usr/bin requests\n\n# after\nfpm -s python -t deb requests","handlingStrategy":"validation","validationCode":"grep -rnE -- '--install-bin([ =]|$)' build/ && { echo 'ERROR: --install-bin is a no-op; remove it' >&2; exit 1; } || true","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat 'Using deprecated flag --install-bin' as covering five python flags: --install-bin, --install-lib, --install-data, --scripts-executable, --setup-py-arguments","Audit fpm invocations after every fpm upgrade since dead flags only emit a warning","Prefer -s dir with a staged tree when you need exact control over file layout"],"tags":["python","deprecated-flag","no-op-option","cli-options"],"backgroundTag":"deprecated-option-warning","analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}