2004-01-01 04:07:58 -05:00
|
|
|
$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
|
2002-01-06 10:47:56 -05:00
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
-import tempfile
|
|
|
|
+#import tempfile
|
|
|
|
|
|
|
|
from distutils.core import setup
|
|
|
|
from distutils import sysconfig
|
2004-01-01 04:07:58 -05:00
|
|
|
@@ -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)
|
2002-01-06 10:47:56 -05:00
|
|
|
script_suffix = '.bat'
|
2002-04-19 13:26:40 -04:00
|
|
|
|
2002-01-06 10:47:56 -05: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 :
|
2004-01-01 04:07:58 -05:00
|
|
|
@@ -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, ],
|
2004-01-01 04:07:58 -05:00
|
|
|
# classifiers was added in Python 2.3, but needed for PyPI
|
|
|
|
#classifiers = CLASSIFIERS,
|