openbsd-ports/devel/py-Checker/patches/patch-setup_py

33 lines
1.3 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-setup_py,v 1.5 2004/01/01 09:07:59 sturm Exp $
--- setup.py.orig 2003-11-18 04:50:14.000000000 +0100
+++ setup.py 2003-12-28 16:28:06.000000000 +0100
2002-07-15 00:09:33 -04:00
@@ -10,7 +10,7 @@ Contributed by: Nicolas Chauvat
import sys
import os
-import tempfile
+#import tempfile
from distutils.core import setup
from distutils import sysconfig
@@ -56,8 +56,8 @@ fairly infrequent."""
2002-07-15 00:09:33 -04:00
script_str = '%s %s %s\n' % (py_exe, checker_py, arg_str)
script_suffix = '.bat'
2002-04-19 13:26:40 -04:00
- LOCAL_SCRIPT = 'pychecker' + script_suffix
- LOCAL_SCRIPT = os.path.join(tempfile.gettempdir(), LOCAL_SCRIPT)
+ LOCAL_SCRIPT = 'pyChecker' + script_suffix
+ LOCAL_SCRIPT = os.path.join('./', LOCAL_SCRIPT)
remove_file(LOCAL_SCRIPT)
2002-04-19 13:26:40 -04:00
try :
@@ -78,7 +78,7 @@ fairly infrequent."""
2001-11-28 02:39:34 -05:00
author_email = "pychecker@metaslash.com",
url = "http://pychecker.sourceforge.net/",
packages = [ 'pychecker' ],
- data_files = [ (install_dir, DOC_FILES) ],
+# data_files = [ (install_dir, DOC_FILES) ],
scripts = [ LOCAL_SCRIPT, ],
# classifiers was added in Python 2.3, but needed for PyPI
#classifiers = CLASSIFIERS,