[Python-checkins] r42946 - python/trunk/Lib/ctypes/.CTYPES_DEVEL python/trunk/Lib/ctypes/__init__.py
thomas.heller
python-checkins at python.org
Thu Mar 9 20:40:01 CET 2006
Author: thomas.heller
Date: Thu Mar 9 20:40:00 2006
New Revision: 42946
Removed:
python/trunk/Lib/ctypes/.CTYPES_DEVEL
Modified:
python/trunk/Lib/ctypes/__init__.py
Log:
Remove the magic to run an uninstalled ctypes version from a CVS sandbox.
Deleted: /python/trunk/Lib/ctypes/.CTYPES_DEVEL
==============================================================================
--- /python/trunk/Lib/ctypes/.CTYPES_DEVEL Thu Mar 9 20:40:00 2006
+++ (empty file)
@@ -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
Modified: python/trunk/Lib/ctypes/__init__.py
==============================================================================
--- python/trunk/Lib/ctypes/__init__.py (original)
+++ python/trunk/Lib/ctypes/__init__.py Thu Mar 9 20:40:00 2006
@@ -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
More information about the Python-checkins
mailing list