Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-setup.py,v 1.1 2015/07/13 16:13:55 kleink Exp $
Adjust dictionaries path to allow multiple Python version installs.
--- setup.py.orig 2013-12-27 17:53:41.000000000 +0100
+++ setup.py 2015-07-13 17:48:37.000000000 +0200
@@ -1,4 +1,5 @@
import os.path
+import sys
from setuptools import setup
classifiers = [
@@ -28,7 +29,7 @@
py_modules=['pyphen'],
provides=['pyphen'],
data_files=[(
- os.path.join('share', 'pyphen', 'dictionaries'), (
+ os.path.join('share', 'pyphen%s' % sys.version[0:3], 'dictionaries'), (
os.path.join(_dict_folder, filename)
for filename in os.listdir(_dict_folder)
if filename.endswith('.dic')))],