f81e7fba |
from distutils.core import setup |
ab58f171 |
import os
|
747ddb2a |
import S3.PkgInfo
|
09b29caf |
## Remove 'MANIFEST' file to force
## distutils to recreate it |
ab58f171 |
try:
os.unlink("MANIFEST")
except:
pass
|
09b29caf |
## Compress manpage. It behaves weird
## with bdist_rpm when not compressed. |
3f0904f6 |
os.system("gzip -c s3cmd.1 > s3cmd.1.gz") |
09b29caf |
## Main distutils info |
747ddb2a |
setup( |
7023e931 |
## Content description |
747ddb2a |
name = S3.PkgInfo.package,
version = S3.PkgInfo.version, |
f81e7fba |
packages = [ 'S3' ], |
c76aaa1e |
scripts = ['s3cmd'], |
09b29caf |
data_files = [
("share/doc/packages/s3cmd", [ "README", "INSTALL", "NEWS" ]),
("share/man/man1", [ "s3cmd.1.gz" ] ),
], |
7023e931 |
## Packaging details
author = "Michal Ludvig",
author_email = "michal@logix.cz", |
747ddb2a |
url = S3.PkgInfo.url,
license = S3.PkgInfo.license,
description = S3.PkgInfo.short_description, |
7023e931 |
long_description = """ |
747ddb2a |
%s |
7023e931 |
Authors:
-------- |
747ddb2a |
Michal Ludvig <michal@logix.cz>
""" % (S3.PkgInfo.long_description) |
f81e7fba |
) |