openbsd-ports/net/py-curl/patches/patch-setup_py

31 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-07-13 12:58:46 -04:00
$OpenBSD: patch-setup_py,v 1.3 2006/07/13 16:58:46 steven Exp $
--- setup.py.orig Wed Jul 5 08:52:19 2006
+++ setup.py Thu Jul 13 18:56:06 2006
@@ -145,20 +145,20 @@ def get_data_files():
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: