2006-11-16 12:43:24 -05:00
|
|
|
$OpenBSD: patch-setup_py,v 1.4 2006/11/16 17:43:24 naddy Exp $
|
|
|
|
--- setup.py.orig Fri Sep 1 09:54:09 2006
|
|
|
|
+++ setup.py Thu Nov 16 18:20:38 2006
|
|
|
|
@@ -148,20 +148,20 @@ def get_data_files():
|
2004-04-20 09:06:27 -04:00
|
|
|
if sys.platform == "win32":
|
|
|
|
datadir = os.path.join("doc", PACKAGE)
|
|
|
|
else:
|
|
|
|
- datadir = os.path.join("share", "doc", PACKAGE)
|
|
|
|
+ datadir = os.path.join("share")
|
|
|
|
#
|
|
|
|
- files = ["ChangeLog", "COPYING", "INSTALL", "README", "TODO",]
|
|
|
|
+ files = []
|
|
|
|
if files:
|
|
|
|
- data_files.append((os.path.join(datadir), files))
|
|
|
|
+ data_files.append((os.path.join(datadir, "doc", "py-curl"),files))
|
|
|
|
files = glob.glob(os.path.join("doc", "*.html"))
|
|
|
|
if files:
|
|
|
|
- data_files.append((os.path.join(datadir, "html"), files))
|
|
|
|
+ data_files.append((os.path.join(datadir, "doc", "py-curl"), files))
|
|
|
|
files = glob.glob(os.path.join("examples", "*.py"))
|
|
|
|
if files:
|
|
|
|
- data_files.append((os.path.join(datadir, "examples"), files))
|
|
|
|
+ data_files.append((os.path.join(datadir, "examples", "py-curl"), files))
|
|
|
|
files = glob.glob(os.path.join("tests", "*.py"))
|
|
|
|
if files:
|
|
|
|
- data_files.append((os.path.join(datadir, "tests"), files))
|
|
|
|
+ data_files.append((os.path.join(datadir, "examples", "py-curl", "tests"), files))
|
|
|
|
#
|
|
|
|
assert data_files
|
|
|
|
for install_dir, files in data_files:
|