Add pep-291 compatibility markers.
This commit is contained in:
parent
f608317061
commit
c2da994585
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
"""create and manipulate C data types in Python"""
|
"""create and manipulate C data types in Python"""
|
||||||
|
|
||||||
import os as _os, sys as _sys
|
import os as _os, sys as _sys
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
import sys
|
import sys
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
"""
|
"""
|
||||||
Enough Mach-O to make your head spin.
|
Enough Mach-O to make your head spin.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
"""
|
"""
|
||||||
dyld emulation
|
dyld emulation
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
"""
|
"""
|
||||||
Generic dylib path manipulation
|
Generic dylib path manipulation
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
"""
|
"""
|
||||||
Generic framework path manipulation
|
Generic framework path manipulation
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
# find_library(name) returns the pathname of a library, or None.
|
# find_library(name) returns the pathname of a library, or None.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
######################################################################
|
||||||
|
# This file should be kept compatible with Python 2.3, see PEP 291. #
|
||||||
|
######################################################################
|
||||||
# XXX This module needs cleanup.
|
# XXX This module needs cleanup.
|
||||||
|
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ToDo:
|
ToDo:
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include "compile.h" /* required only for 2.3, as it seems */
|
#include "compile.h" /* required only for 2.3, as it seems */
|
||||||
#include "frameobject.h"
|
#include "frameobject.h"
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* History: First version dated from 3/97, derived from my SCMLIB version
|
* History: First version dated from 3/97, derived from my SCMLIB version
|
||||||
* for win16.
|
* for win16.
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
#include <ffi.h>
|
#include <ffi.h>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/******************************************************************/
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#if (PY_VERSION_HEX < 0x02050000)
|
#if (PY_VERSION_HEX < 0x02050000)
|
||||||
typedef int Py_ssize_t;
|
typedef int Py_ssize_t;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
/******************************************************************/
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#ifndef _CTYPES_DLFCN_H_
|
#ifndef _CTYPES_DLFCN_H_
|
||||||
#define _CTYPES_DLFCN_H_
|
#define _CTYPES_DLFCN_H_
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <ffi.h>
|
#include <ffi.h>
|
||||||
#ifdef MS_WIN32
|
#ifdef MS_WIN32
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*****************************************************************
|
||||||
|
This file should be kept compatible with Python 2.3, see PEP 291.
|
||||||
|
*****************************************************************/
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include <ffi.h>
|
#include <ffi.h>
|
||||||
#ifdef MS_WIN32
|
#ifdef MS_WIN32
|
||||||
|
|
Loading…
Reference in New Issue