[pypy-dev] A small bug in cppyy's setup.py

Shaheed Haque srhaque at theiet.org
Wed Oct 11 06:51:37 EDT 2017


Hi,

In cppyy 0.3.1, there is a bug in setup.py for systems where pypy is
not detected. I believe an incomplete patch is:

==========
$ diff -U5 setup.py.original setup.py
--- setup.py.original   2017-10-11 11:36:54.632924969 +0100
+++ setup.py    2017-10-11 11:38:08.732492901 +0100
@@ -18,10 +18,11 @@
     else:
         requirements = ['cppyy-backend']
         add_pkg = ['cppyy']
 except ImportError:
     requirements = ['CPyCppyy']
+    add_pkg = []


 setup(
     name='cppyy',
     version='0.3.1',
==========

Without this assignment to define add_pkg, the reference to "add_pkg"
fails in the setup() call. I describe the patch as incomplete because
I'm not sure what the array should contain. I do see that the relevant
direction contains both a "cppyy" and a "cppyy_compat" directory.

Any clarification welcomed.

Thanks, Shaheed

P.S. If a bug report, or a PR is preferred, please advise.


More information about the pypy-dev mailing list