Skip to content

Commit

Permalink
Change text of exception, replace test spam module for more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Nov 3, 2019
1 parent 17b6298 commit 9d65112
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef

python_configurations = get_python_configurations(build_selector)
if len(python_configurations) == 0:
raise ValueError("Empty list of configuration to build. Check 'CIBW_BUILD' and 'CIBW_SKIP' environment variables. " \
raise ValueError("No linux build identifiers are selected after applying 'CIBW_BUILD' and 'CIBW_SKIP'. " \
"Check documentation if python version identifier do not change")
platforms = [
('manylinux_x86_64', manylinux_images['x86_64']),
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_python_configurations(build_selector):
def build(project_dir, output_dir, test_command, test_requires, test_extras, before_build, build_verbosity, build_selector, environment):
python_configurations = get_python_configurations(build_selector)
if len(python_configurations) == 0:
raise ValueError("Empty list of configuration to build. Check 'CIBW_BUILD' and 'CIBW_SKIP' environment variables " \
raise ValueError("No macosx build identifiers are selected after applying 'CIBW_BUILD' and 'CIBW_SKIP'. " \
"Check documentation if python version identifier do not change")
get_pip_url = 'https://bootstrap.pypa.io/get-pip.py'
get_pip_script = '/tmp/get-pip.py'
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def shell(args, env=None, cwd=None):

python_configurations = get_python_configurations(build_selector)
if len(python_configurations) == 0:
raise ValueError("Empty list of configuration to build. Check 'CIBW_BUILD' and 'CIBW_SKIP' environment variables " \
raise ValueError("No windows build identifiers are selected after applying 'CIBW_BUILD' and 'CIBW_SKIP'. " \
"Check documentation if python version identifier do not change")
for config in python_configurations:
config_python_path = get_python_path(config)
Expand Down
13 changes: 2 additions & 11 deletions test/09_platform_selector_problem/spam.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
#include <Python.h>
#if defined(__linux__)
#include <malloc.h>
#endif

static PyObject *
spam_system(PyObject *self, PyObject *args)
{
const char *command;
int sts = 0;
int sts;

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

#if defined(__linux__)
sts = malloc_info(0, stdout);
#endif
if (sts == 0) {
sts = system(command);
}
sts = system(command);
return PyLong_FromLong(sts);
}

Expand Down

0 comments on commit 9d65112

Please sign in to comment.