[pypy-commit] cffi default: 'zip_safe=False' only exists in setuptools, not in distutils.
arigo
noreply at buildbot.pypy.org
Thu Sep 20 11:32:16 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r955:f79fbea74cc1
Date: 2012-09-20 11:32 +0200
http://bitbucket.org/cffi/cffi/changeset/f79fbea74cc1/
Log: 'zip_safe=False' only exists in setuptools, not in distutils.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -297,21 +297,23 @@
extension modules too.
Example::
-
+
+ from setuptools import setup
+ --OR--
from distutils.core import setup
- from distutils.extension import Extension
# you must import at least the module(s) that define the ffi's
# that you use in your application
import yourmodule
setup(...
- zip_safe=False,
+ zip_safe=False, # with setuptools only
ext_modules=[yourmodule.ffi.verifier.get_extension()])
-Warning: you have to say ``zip_safe=False``, otherwise it might or might
-not work, depending on which verifier engine is used! (I tried to find
-either workarounds or proper solutions but failed so far.)
+Warning: with ``setuptools``, you have to say ``zip_safe=False``,
+otherwise it might or might not work, depending on which verifier engine
+is used! (I tried to find either workarounds or proper solutions but
+failed so far.)
.. versionadded:: 0.4
If your ``setup.py`` installs a whole package, you can put the extension
More information about the pypy-commit
mailing list