Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (39 sloc) 0.995 kB
f81e7fb @mludvig All classes from s3.py go to S3/S3.py
mludvig authored
1 from distutils.core import setup
093be85 @mludvig 2007-06-17 Michal Ludvig <michal@logix.cz>
mludvig authored
2 import sys
ab58f17 @mludvig - Added configuration for setup.py sdist
mludvig authored
3 import os
4
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
5 import S3.PkgInfo
6
ab58f17 @mludvig - Added configuration for setup.py sdist
mludvig authored
7 try:
093be85 @mludvig 2007-06-17 Michal Ludvig <michal@logix.cz>
mludvig authored
8 ## Remove 'MANIFEST' file to force
9 ## distutils to recreate it.
10 ## Only in "sdist" stage. Otherwise
11 ## it makes life difficult to packagers.
12 if sys.argv[1] == "sdist":
13 os.unlink("MANIFEST")
ab58f17 @mludvig - Added configuration for setup.py sdist
mludvig authored
14 except:
15 pass
16
093be85 @mludvig 2007-06-17 Michal Ludvig <michal@logix.cz>
mludvig authored
17 man_path = os.getenv("S3CMD_INSTPATH_MAN") or "share/man"
18 doc_path = os.getenv("S3CMD_INSTPATH_DOC") or "share/doc/packages"
09b29ca @mludvig 2007-04-09 Michal Ludvig <michal@logix.cz>
mludvig authored
19
20 ## Main distutils info
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
21 setup(
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
22 ## Content description
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
23 name = S3.PkgInfo.package,
24 version = S3.PkgInfo.version,
f81e7fb @mludvig All classes from s3.py go to S3/S3.py
mludvig authored
25 packages = [ 'S3' ],
c76aaa1 @mludvig Renamed s3.py to s3cmd (take 2)
mludvig authored
26 scripts = ['s3cmd'],
09b29ca @mludvig 2007-04-09 Michal Ludvig <michal@logix.cz>
mludvig authored
27 data_files = [
093be85 @mludvig 2007-06-17 Michal Ludvig <michal@logix.cz>
mludvig authored
28 (doc_path+"/s3cmd", [ "README", "INSTALL", "NEWS" ]),
29 (man_path+"/man1", [ "s3cmd.1" ] ),
09b29ca @mludvig 2007-04-09 Michal Ludvig <michal@logix.cz>
mludvig authored
30 ],
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
31
32 ## Packaging details
33 author = "Michal Ludvig",
34 author_email = "michal@logix.cz",
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
35 url = S3.PkgInfo.url,
36 license = S3.PkgInfo.license,
37 description = S3.PkgInfo.short_description,
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
38 long_description = """
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
39 %s
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
40
41 Authors:
42 --------
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
43 Michal Ludvig <michal@logix.cz>
44 """ % (S3.PkgInfo.long_description)
f81e7fb @mludvig All classes from s3.py go to S3/S3.py
mludvig authored
45 )
Something went wrong with that request. Please try again.