Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (45 sloc) 1.206 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
c993086 @mludvig 2007-06-19 Michal Ludvig <michal@logix.cz>
mludvig authored
17 ## Don't install manpages and docs when $S3CMD_PACKAGING is set
18 ## This was a requirement of Debian package maintainer.
19 if not os.getenv("S3CMD_PACKAGING"):
20 man_path = os.getenv("S3CMD_INSTPATH_MAN") or "share/man"
21 doc_path = os.getenv("S3CMD_INSTPATH_DOC") or "share/doc/packages"
22 data_files = [
23 (doc_path+"/s3cmd", [ "README", "INSTALL", "NEWS" ]),
24 (man_path+"/man1", [ "s3cmd.1" ] ),
25 ]
26 else:
27 data_files = None
09b29ca @mludvig 2007-04-09 Michal Ludvig <michal@logix.cz>
mludvig authored
28
29 ## Main distutils info
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
30 setup(
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
31 ## Content description
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
32 name = S3.PkgInfo.package,
33 version = S3.PkgInfo.version,
f81e7fb @mludvig All classes from s3.py go to S3/S3.py
mludvig authored
34 packages = [ 'S3' ],
c76aaa1 @mludvig Renamed s3.py to s3cmd (take 2)
mludvig authored
35 scripts = ['s3cmd'],
c993086 @mludvig 2007-06-19 Michal Ludvig <michal@logix.cz>
mludvig authored
36 data_files = data_files,
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
37
38 ## Packaging details
39 author = "Michal Ludvig",
40 author_email = "michal@logix.cz",
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
41 url = S3.PkgInfo.url,
42 license = S3.PkgInfo.license,
43 description = S3.PkgInfo.short_description,
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
44 long_description = """
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
45 %s
7023e93 @mludvig Added info for building RPM packages.
mludvig authored
46
47 Authors:
48 --------
747ddb2 @mludvig 2007-03-26 Michal Ludvig <michal@logix.cz>
mludvig authored
49 Michal Ludvig <michal@logix.cz>
50 """ % (S3.PkgInfo.long_description)
f81e7fb @mludvig All classes from s3.py go to S3/S3.py
mludvig authored
51 )
Something went wrong with that request. Please try again.