Skip to content

Instantly share code, notes, and snippets.

@schmichael
Created March 15, 2012 00:38
Show Gist options
  • Save schmichael/2040741 to your computer and use it in GitHub Desktop.
Save schmichael/2040741 to your computer and use it in GitHub Desktop.
schmichael@git:master:~/src/mmstats$ python setup.py bdist_rpm --help
Common commands: (see '--help-commands' for more)
setup.py build will build the package underneath 'build/'
setup.py install will install the package
Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don't actually do anything
--help (-h) show detailed help message
--no-user-cfg ignore pydistutils.cfg in your home directory
Options for 'bdist_rpm' command:
--bdist-base base directory for creating built distributions
--rpm-base base directory for creating RPMs (defaults to "rpm"
under --bdist-base; must be specified for RPM 2)
--dist-dir (-d) directory to put final RPM files in (and .spec files if
--spec-only)
--python path to Python interpreter to hard-code in the .spec
file (default: "python")
--fix-python hard-code the exact path to the current Python
interpreter in the .spec file
--spec-only only regenerate spec file
--source-only only generate source RPM
--binary-only only generate binary RPM
--use-bzip2 use bzip2 instead of gzip to create source distribution
--distribution-name name of the (Linux) distribution to which this RPM
applies (*not* the name of the module distribution!)
--group package classification [default:
"Development/Libraries"]
--release RPM release number
--serial RPM serial number
--vendor RPM "vendor" (eg. "Joe Blow <joe@example.com>")
[default: maintainer or author from setup script]
--packager RPM packager (eg. "Jane Doe
<jane@example.net>")[default: vendor]
--doc-files list of documentation files (space or comma-separated)
--changelog RPM changelog
--icon name of icon file
--provides capabilities provided by this package
--requires capabilities required by this package
--conflicts capabilities which conflict with this package
--build-requires capabilities required to build this package
--obsoletes capabilities made obsolete by this package
--no-autoreq do not automatically calculate dependencies
--keep-temp (-k) don't clean up RPM build directory
--no-keep-temp clean up RPM build directory [default]
--use-rpm-opt-flags compile with RPM_OPT_FLAGS when building from source
RPM
--no-rpm-opt-flags do not pass any RPM CFLAGS to compiler
--rpm3-mode RPM 3 compatibility mode (default)
--rpm2-mode RPM 2 compatibility mode
--prep-script Specify a script for the PREP phase of RPM building
--build-script Specify a script for the BUILD phase of RPM building
--pre-install Specify a script for the pre-INSTALL phase of RPM
building
--install-script Specify a script for the INSTALL phase of RPM building
--post-install Specify a script for the post-INSTALL phase of RPM
building
--pre-uninstall Specify a script for the pre-UNINSTALL phase of RPM
building
--post-uninstall Specify a script for the post-UNINSTALL phase of RPM
building
--clean-script Specify a script for the CLEAN phase of RPM building
--verify-script Specify a script for the VERIFY phase of the RPM build
--force-arch Force an architecture onto the RPM build process
--quiet (-q) Run the INSTALL phase of RPM building in quiet mode
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment