Skip to content
Generic setup.py that implements an easy RPM creation process
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
change_me
.gitignore
COPYING
LICENSE.txt
MANIFEST.in
README
README.txt
setup.py

README

#
# Author: Rogério Carvalho Schneider <stockrt@gmail.com>
# URL:    http://stockrt.github.com
#

Generic setup.py (generic_setup). This setup.py reads values from the source
code of your module/application and auto-assemble the setup() function
arguments for distutils.
It also automagically generate an RPM .spec file with data gathered from
inside your main program source file.

- Usage
Just set the source_code variable to the correct file name:
### DEFINES_START ###
# Set this parameter to point to your source file, leave the rest as is:
[... snip ...]
source_code = 'change_me/change_me.py'
[... snip ...]
### DEFINES_END ###

    ./setup.py

For more help on generic_setup, type:
    ./setup.py generic_setup using
    ./setup.py generic_setup rpmbuild

For automated rpmbuild, with custom .spec, type:
    ./setup.py rpmbuild

Cleaning up:
    ./setup.py clean
You can’t perform that action at this time.