[zeromq-dev] ZMQ Python with Pypy

Justin Cook jhcook at gmail.com
Mon Mar 5 12:24:11 CET 2012


I've tracked this down to this:

https://bugs.pypy.org/issue674

We're (well me) clearly falling victim to this "lack of a feature".

On Mon, Mar 5, 2012 at 10:46 AM, Justin Cook <jhcook at gmail.com> wrote:
> And yet, even more:
>
> I printed out the trace and found the config variable "CC" being
> passed to os.path.basename returns None so basename raises an error.
>
> Traceback (most recent call last):
>  File "setup.py", line 251, in run
>    config = detect_zmq(self.tempdir, **settings)
>  File "/home/jcook/pyzmq-2.1.11/buildutils.py", line 123, in detect_zmq
>    cc.link_executable(objs, efile, extra_preargs=lpreargs)
>  File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/ccompiler.py",
> line 750, in link_executable
>    debug, extra_preargs, extra_postargs, None, target_lang)
>  File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/unixccompiler.py",
> line 233, in link
>    libraries)
>  File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/ccompiler.py",
> line 1121, in gen_lib_options
>    opt = compiler.runtime_library_dir_option(dir)
>  File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/unixccompiler.py",
> line 300, in runtime_library_dir_option
>    compiler = os.path.basename(sysconfig.get_config_var("CC"))
>  File "/usr/lib64/pypy-1.8/lib-python/2.7/posixpath.py", line 112, in basename
>    i = p.rfind('/') + 1
> AttributeError: 'NoneType' object has no attribute 'rfind'

-- 
Justin Cook

http://www.linkedin.com/in/jhcook



More information about the zeromq-dev mailing list