Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
654c26f7
Commit
654c26f7
authored
Jan 02, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing shlib_test (apparently unused and broken).
parent
1ec7cafa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
192 deletions
+0
-192
tests/shlib_test/hello.c
tests/shlib_test/hello.c
+0
-168
tests/shlib_test/hello.pyx
tests/shlib_test/hello.pyx
+0
-4
tests/shlib_test/hellolib.c
tests/shlib_test/hellolib.c
+0
-3
tests/shlib_test/setup.py
tests/shlib_test/setup.py
+0
-10
tests/shlib_test/test_hello.py
tests/shlib_test/test_hello.py
+0
-7
No files found.
tests/shlib_test/hello.c
deleted
100755 → 0
View file @
1ec7cafa
/* Generated by Pyrex 0.9.3 on Thu Jan 05 17:47:12 2006 */
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
typedef
struct
{
PyObject
**
p
;
char
*
s
;}
__Pyx_InternTabEntry
;
/*proto*/
typedef
struct
{
PyObject
**
p
;
char
*
s
;
long
n
;}
__Pyx_StringTabEntry
;
/*proto*/
static
PyObject
*
__Pyx_UnpackItem
(
PyObject
*
,
int
);
/*proto*/
static
int
__Pyx_EndUnpack
(
PyObject
*
,
int
);
/*proto*/
static
int
__Pyx_PrintItem
(
PyObject
*
);
/*proto*/
static
int
__Pyx_PrintNewline
(
void
);
/*proto*/
static
void
__Pyx_Raise
(
PyObject
*
type
,
PyObject
*
value
,
PyObject
*
tb
);
/*proto*/
static
void
__Pyx_ReRaise
(
void
);
/*proto*/
static
PyObject
*
__Pyx_Import
(
PyObject
*
name
,
PyObject
*
from_list
);
/*proto*/
static
PyObject
*
__Pyx_GetExcValue
(
void
);
/*proto*/
static
int
__Pyx_ArgTypeTest
(
PyObject
*
obj
,
PyTypeObject
*
type
,
int
none_allowed
,
char
*
name
);
/*proto*/
static
int
__Pyx_TypeTest
(
PyObject
*
obj
,
PyTypeObject
*
type
);
/*proto*/
static
int
__Pyx_GetStarArgs
(
PyObject
**
args
,
PyObject
**
kwds
,
char
*
kwd_list
[],
int
nargs
,
PyObject
**
args2
,
PyObject
**
kwds2
);
/*proto*/
static
void
__Pyx_WriteUnraisable
(
char
*
name
);
/*proto*/
static
void
__Pyx_AddTraceback
(
char
*
funcname
);
/*proto*/
static
PyTypeObject
*
__Pyx_ImportType
(
char
*
module_name
,
char
*
class_name
,
long
size
);
/*proto*/
static
int
__Pyx_SetVtable
(
PyObject
*
dict
,
void
*
vtable
);
/*proto*/
static
int
__Pyx_GetVtable
(
PyObject
*
dict
,
void
*
vtabptr
);
/*proto*/
static
PyObject
*
__Pyx_CreateClass
(
PyObject
*
bases
,
PyObject
*
dict
,
PyObject
*
name
,
char
*
modname
);
/*proto*/
static
int
__Pyx_InternStrings
(
__Pyx_InternTabEntry
*
t
);
/*proto*/
static
int
__Pyx_InitStrings
(
__Pyx_StringTabEntry
*
t
);
/*proto*/
static
PyObject
*
__Pyx_GetName
(
PyObject
*
dict
,
PyObject
*
name
);
/*proto*/
static
PyObject
*
__pyx_m
;
static
PyObject
*
__pyx_b
;
static
int
__pyx_lineno
;
static
char
*
__pyx_filename
;
staticforward
char
**
__pyx_f
;
/* Declarations from hello */
char
(
*
(
get_hello_msg
(
void
)));
/*proto*/
/* Implementation of hello */
static
PyObject
*
__pyx_n_hello
;
static
PyObject
*
__pyx_f_5hello_hello
(
PyObject
*
__pyx_self
,
PyObject
*
__pyx_args
,
PyObject
*
__pyx_kwds
);
/*proto*/
static
PyObject
*
__pyx_f_5hello_hello
(
PyObject
*
__pyx_self
,
PyObject
*
__pyx_args
,
PyObject
*
__pyx_kwds
)
{
PyObject
*
__pyx_r
;
PyObject
*
__pyx_1
=
0
;
static
char
*
__pyx_argnames
[]
=
{
0
};
if
(
!
PyArg_ParseTupleAndKeywords
(
__pyx_args
,
__pyx_kwds
,
""
,
__pyx_argnames
))
return
0
;
/* "C:\cygwin\home\pje\setuptools\tests\shlib_test\hello.pyx":4 */
__pyx_1
=
PyString_FromString
(
get_hello_msg
());
if
(
!
__pyx_1
)
{
__pyx_filename
=
__pyx_f
[
0
];
__pyx_lineno
=
4
;
goto
__pyx_L1
;}
__pyx_r
=
__pyx_1
;
__pyx_1
=
0
;
goto
__pyx_L0
;
__pyx_r
=
Py_None
;
Py_INCREF
(
__pyx_r
);
goto
__pyx_L0
;
__pyx_L1:
;
Py_XDECREF
(
__pyx_1
);
__Pyx_AddTraceback
(
"hello.hello"
);
__pyx_r
=
0
;
__pyx_L0:
;
return
__pyx_r
;
}
static
__Pyx_InternTabEntry
__pyx_intern_tab
[]
=
{
{
&
__pyx_n_hello
,
"hello"
},
{
0
,
0
}
};
static
struct
PyMethodDef
__pyx_methods
[]
=
{
{
"hello"
,
(
PyCFunction
)
__pyx_f_5hello_hello
,
METH_VARARGS
|
METH_KEYWORDS
,
0
},
{
0
,
0
,
0
,
0
}
};
DL_EXPORT
(
void
)
inithello
(
void
);
/*proto*/
DL_EXPORT
(
void
)
inithello
(
void
)
{
__pyx_m
=
Py_InitModule4
(
"hello"
,
__pyx_methods
,
0
,
0
,
PYTHON_API_VERSION
);
if
(
!
__pyx_m
)
{
__pyx_filename
=
__pyx_f
[
0
];
__pyx_lineno
=
1
;
goto
__pyx_L1
;};
__pyx_b
=
PyImport_AddModule
(
"__builtin__"
);
if
(
!
__pyx_b
)
{
__pyx_filename
=
__pyx_f
[
0
];
__pyx_lineno
=
1
;
goto
__pyx_L1
;};
if
(
PyObject_SetAttrString
(
__pyx_m
,
"__builtins__"
,
__pyx_b
)
<
0
)
{
__pyx_filename
=
__pyx_f
[
0
];
__pyx_lineno
=
1
;
goto
__pyx_L1
;};
if
(
__Pyx_InternStrings
(
__pyx_intern_tab
)
<
0
)
{
__pyx_filename
=
__pyx_f
[
0
];
__pyx_lineno
=
1
;
goto
__pyx_L1
;};
/* "C:\cygwin\home\pje\setuptools\tests\shlib_test\hello.pyx":3 */
return
;
__pyx_L1:
;
__Pyx_AddTraceback
(
"hello"
);
}
static
char
*
__pyx_filenames
[]
=
{
"hello.pyx"
,
};
statichere
char
**
__pyx_f
=
__pyx_filenames
;
/* Runtime support code */
static
int
__Pyx_InternStrings
(
__Pyx_InternTabEntry
*
t
)
{
while
(
t
->
p
)
{
*
t
->
p
=
PyString_InternFromString
(
t
->
s
);
if
(
!*
t
->
p
)
return
-
1
;
++
t
;
}
return
0
;
}
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static
void
__Pyx_AddTraceback
(
char
*
funcname
)
{
PyObject
*
py_srcfile
=
0
;
PyObject
*
py_funcname
=
0
;
PyObject
*
py_globals
=
0
;
PyObject
*
empty_tuple
=
0
;
PyObject
*
empty_string
=
0
;
PyCodeObject
*
py_code
=
0
;
PyFrameObject
*
py_frame
=
0
;
py_srcfile
=
PyString_FromString
(
__pyx_filename
);
if
(
!
py_srcfile
)
goto
bad
;
py_funcname
=
PyString_FromString
(
funcname
);
if
(
!
py_funcname
)
goto
bad
;
py_globals
=
PyModule_GetDict
(
__pyx_m
);
if
(
!
py_globals
)
goto
bad
;
empty_tuple
=
PyTuple_New
(
0
);
if
(
!
empty_tuple
)
goto
bad
;
empty_string
=
PyString_FromString
(
""
);
if
(
!
empty_string
)
goto
bad
;
py_code
=
PyCode_New
(
0
,
/*int argcount,*/
0
,
/*int nlocals,*/
0
,
/*int stacksize,*/
0
,
/*int flags,*/
empty_string
,
/*PyObject *code,*/
empty_tuple
,
/*PyObject *consts,*/
empty_tuple
,
/*PyObject *names,*/
empty_tuple
,
/*PyObject *varnames,*/
empty_tuple
,
/*PyObject *freevars,*/
empty_tuple
,
/*PyObject *cellvars,*/
py_srcfile
,
/*PyObject *filename,*/
py_funcname
,
/*PyObject *name,*/
__pyx_lineno
,
/*int firstlineno,*/
empty_string
/*PyObject *lnotab*/
);
if
(
!
py_code
)
goto
bad
;
py_frame
=
PyFrame_New
(
PyThreadState_Get
(),
/*PyThreadState *tstate,*/
py_code
,
/*PyCodeObject *code,*/
py_globals
,
/*PyObject *globals,*/
0
/*PyObject *locals*/
);
if
(
!
py_frame
)
goto
bad
;
py_frame
->
f_lineno
=
__pyx_lineno
;
PyTraceBack_Here
(
py_frame
);
bad:
Py_XDECREF
(
py_srcfile
);
Py_XDECREF
(
py_funcname
);
Py_XDECREF
(
empty_tuple
);
Py_XDECREF
(
empty_string
);
Py_XDECREF
(
py_code
);
Py_XDECREF
(
py_frame
);
}
tests/shlib_test/hello.pyx
deleted
100755 → 0
View file @
1ec7cafa
cdef
extern
char
*
get_hello_msg
()
def
hello
():
return
get_hello_msg
()
tests/shlib_test/hellolib.c
deleted
100755 → 0
View file @
1ec7cafa
extern
char
*
get_hello_msg
()
{
return
"Hello, world!"
;
}
tests/shlib_test/setup.py
deleted
100755 → 0
View file @
1ec7cafa
from
setuptools
import
setup
,
Extension
,
Library
setup
(
name
=
"shlib_test"
,
ext_modules
=
[
Library
(
"hellolib"
,
[
"hellolib.c"
]),
Extension
(
"hello"
,
[
"hello.pyx"
],
libraries
=
[
"hellolib"
])
],
test_suite
=
"test_hello.HelloWorldTest"
,
)
tests/shlib_test/test_hello.py
deleted
100755 → 0
View file @
1ec7cafa
from
unittest
import
TestCase
class
HelloWorldTest
(
TestCase
):
def
testHelloMsg
(
self
):
from
hello
import
hello
self
.
assertEqual
(
hello
(),
"Hello, world!"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment