summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-03-09 19:40:00 (GMT)
committerThomas Heller <theller@ctypes.org>2006-03-09 19:40:00 (GMT)
commit51f77b5152dbec3b6d105d9bf53af8d8a7b2abe5 (patch)
tree4e4ae2d3a599500a80cf2caa61337b4f9c8fbf91
parentaeadf954499a198eae369973c948123381b01d06 (diff)
downloadcpython-51f77b5152dbec3b6d105d9bf53af8d8a7b2abe5.zip
cpython-51f77b5152dbec3b6d105d9bf53af8d8a7b2abe5.tar.gz
cpython-51f77b5152dbec3b6d105d9bf53af8d8a7b2abe5.tar.bz2
Remove the magic to run an uninstalled ctypes version from a CVS sandbox.
-rw-r--r--Lib/ctypes/.CTYPES_DEVEL14
-rw-r--r--Lib/ctypes/__init__.py7
2 files changed, 0 insertions, 21 deletions
diff --git a/Lib/ctypes/.CTYPES_DEVEL b/Lib/ctypes/.CTYPES_DEVEL
deleted file mode 100644
index 7f3d463..0000000
--- a/Lib/ctypes/.CTYPES_DEVEL
+++ /dev/null
@@ -1,14 +0,0 @@
-# -*- python -*-
-def install():
- import sys, os
-
- from distutils.util import get_platform
- plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
- build_dir = os.path.join("..", 'build', 'lib' + plat_specifier)
-
- p = os.path.abspath(os.path.join(os.path.dirname(__file__), build_dir))
- sys.path.insert(0, p)
- del sys
-
-install()
-del install
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py
index b9273f9..dd0f640 100644
--- a/Lib/ctypes/__init__.py
+++ b/Lib/ctypes/__init__.py
@@ -1,15 +1,8 @@
"""create and manipulate C data types in Python"""
-# special developer support to use ctypes from the CVS sandbox,
-# without installing it
import os as _os, sys as _sys
from itertools import chain as _chain
-_magicfile = _os.path.join(_os.path.dirname(__file__), ".CTYPES_DEVEL")
-if _os.path.isfile(_magicfile):
- execfile(_magicfile)
-del _magicfile
-
__version__ = "0.9.9.4"
from _ctypes import Union, Structure, Array