Skip to content

Commit 30cc3e1

Browse files
committed
Making sure 08_manylinux2010 only doesn't work on manylinux1
1 parent a18814c commit 30cc3e1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"CIBW_SKIP": "*-manylinux1"
2+
"CIBW_ENVIRONMENT": "CFLAGS=\"$CFLAGS -Werror=implicit-function-declaration\"",
3+
"CIBW_TEST_COMMAND": "python -c \"import spam\""
34
}

test/08_manylinux2010_only/spam.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ static PyObject *
77
spam_system(PyObject *self, PyObject *args)
88
{
99
const char *command;
10-
int sts;
10+
int sts = 0;
1111

1212
if (!PyArg_ParseTuple(args, "s", &command))
1313
return NULL;
1414

15+
#if defined(__linux__)
1516
sts = malloc_info(0, stdout);
17+
#endif
1618
if (sts == 0) {
1719
sts = system(command);
1820
}

0 commit comments

Comments
 (0)