summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-01-05 00:12:51 +0200
committerMatti Picus <matti.picus@gmail.com>2020-01-05 00:12:51 +0200
commit03ee4e3e2249e114bfc7375ad4abd2f4320e05bd (patch)
tree71c4a2e91a0104be60cb75a257ed1c531b084604
parent0e3aa45f0edb076fe282461509d8a19effd3d8f5 (diff)
downloadcffi-03ee4e3e2249e114bfc7375ad4abd2f4320e05bd.tar.gz
tweak how to pass define_macros, shorten module name to not go over 260 chars
-rw-r--r--doc/source/whatsnew.rst6
-rw-r--r--testing/cffi0/test_zdistutils.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst
index ab361bb..9606edf 100644
--- a/doc/source/whatsnew.rst
+++ b/doc/source/whatsnew.rst
@@ -83,7 +83,7 @@ v1.12.1
Like before, `Issue #350`_ mentions a workaround if you still want
the ``Py_LIMITED_API`` flag and *either* you are not concerned about
virtualenv *or* you are sure your module will not be used on CPython
- <= 3.4: pass ``define_macros=[("Py_LIMITED_API", None)]`` to the
+ <= 3.4: pass ``define_macros=[("Py_LIMITED_API", None)]`` as a keyword to the
``ffibuilder.set_source()`` call.
@@ -155,8 +155,8 @@ v1.11.5
* CPython 3 on Windows: we no longer compile with ``Py_LIMITED_API``
by default because such modules cannot be used with virtualenv.
`Issue #350`_ mentions a workaround if you still want that and are not
- concerned about virtualenv: pass a ``define_macros=[("Py_LIMITED_API",
- None)]`` to the ``ffibuilder.set_source()`` call.
+ concerned about virtualenv: pass ``define_macros=[("Py_LIMITED_API",
+ None)]`` as a keyword to the ``ffibuilder.set_source()`` call.
.. _`Issue #345`: https://bitbucket.org/cffi/cffi/issues/345/
.. _`Issue #350`: https://bitbucket.org/cffi/cffi/issues/350/
diff --git a/testing/cffi0/test_zdistutils.py b/testing/cffi0/test_zdistutils.py
index b67b105..35b3d0c 100644
--- a/testing/cffi0/test_zdistutils.py
+++ b/testing/cffi0/test_zdistutils.py
@@ -89,7 +89,7 @@ class DistUtilsTest(object):
csrc = '/*hi there %s!2*/\n#include <math.h>\n' % self
v = Verifier(ffi, csrc, force_generic_engine=self.generic,
libraries=[self.lib_m])
- basename = self.__class__.__name__ + 'test_compile_module'
+ basename = self.__class__.__name__[:10] + '_test_compile_module'
v.modulefilename = filename = str(udir.join(basename + '.so'))
v.compile_module()
assert filename == v.modulefilename