Does not work when installed from wheel

Issue #31 resolved
Aleks Bunin created an issue

I prepare wheel for every package I use. When I prepared wheel package for pdbpp, and installed that wheel - it did not work, while when installing from sources worked fine.

Wheel preparation:

$ (unset PIP_NO_INDEX; pip wheel pdbpp)
$ pip install pdbpp

When I used import pdb; pdb.set_trace() in the code, regular pdb was loaded.

When I installed pdbpp from sources, pdbpp will work fine.

I'm using wheel==0.24.0.

Comments (11)

  1. Antonio Cuni repo owner

    I cannot reproduce. I tried to run your commands in a clean virtualenv, and I correctly get the (Pdb++) prompt:

    homer tmp $ virtualenv foo
    New python executable in foo/bin/python
    Installing setuptools, pip...done.
    homer tmp $ . foo/bin/activate
    
    (foo)homer tmp $ pip install wheel
    Downloading/unpacking wheel
      Downloading wheel-0.24.0-py2.py3-none-any.whl (63kB): 63kB downloaded
    Installing collected packages: wheel
    Successfully installed wheel
    Cleaning up...
    
    (foo)homer tmp $ (unset PIP_NO_INDEX; pip wheel pdbpp)
    Downloading/unpacking pdbpp
      Downloading pdbpp-0.7.2.tar.gz
      Running setup.py (path:/tmp/foo/build/pdbpp/setup.py) egg_info for package pdbpp
    
    Downloading/unpacking fancycompleter>=0.2 (from pdbpp)
      Downloading fancycompleter-0.4.tar.gz
      Running setup.py (path:/tmp/foo/build/fancycompleter/setup.py) egg_info for package fancycompleter
    
    Downloading/unpacking wmctrl (from pdbpp)
      Downloading wmctrl-0.1.tar.gz
      Running setup.py (path:/tmp/foo/build/wmctrl/setup.py) egg_info for package wmctrl
    
    Downloading/unpacking pygments (from pdbpp)
      Downloading Pygments-1.6.tar.gz (1.4MB): 1.4MB downloaded
      Running setup.py (path:/tmp/foo/build/pygments/setup.py) egg_info for package pygments
    
    Downloading/unpacking pyrepl>=0.8.2 (from fancycompleter>=0.2->pdbpp)
      Downloading pyrepl-0.8.4.tar.gz (45kB): 45kB downloaded
      Running setup.py (path:/tmp/foo/build/pyrepl/setup.py) egg_info for package pyrepl
    
    Building wheels for collected packages: pdbpp,fancycompleter,wmctrl,pygments,pyrepl
      Running setup.py bdist_wheel for pdbpp
      Destination directory: /tmp/wheelhouse
      Running setup.py bdist_wheel for fancycompleter
      Destination directory: /tmp/wheelhouse
      Running setup.py bdist_wheel for wmctrl
      Destination directory: /tmp/wheelhouse
      Running setup.py bdist_wheel for pygments
      Destination directory: /tmp/wheelhouse
      Running setup.py bdist_wheel for pyrepl
      Destination directory: /tmp/wheelhouse
    Successfully built pdbpp fancycompleter wmctrl pygments pyrepl
    Cleaning up...
    
    (foo)homer tmp $ pip install pdbpp
    Downloading/unpacking pdbpp
      Downloading pdbpp-0.7.2.tar.gz
      Running setup.py (path:/tmp/foo/build/pdbpp/setup.py) egg_info for package pdbpp
    
    Downloading/unpacking fancycompleter>=0.2 (from pdbpp)
      Downloading fancycompleter-0.4.tar.gz
      Running setup.py (path:/tmp/foo/build/fancycompleter/setup.py) egg_info for package fancycompleter
    
    Downloading/unpacking wmctrl (from pdbpp)
      Downloading wmctrl-0.1.tar.gz
      Running setup.py (path:/tmp/foo/build/wmctrl/setup.py) egg_info for package wmctrl
    
    Downloading/unpacking pygments (from pdbpp)
      Downloading Pygments-1.6.tar.gz (1.4MB): 1.4MB downloaded
      Running setup.py (path:/tmp/foo/build/pygments/setup.py) egg_info for package pygments
    
    Downloading/unpacking pyrepl>=0.8.2 (from fancycompleter>=0.2->pdbpp)
      Downloading pyrepl-0.8.4.tar.gz (45kB): 45kB downloaded
      Running setup.py (path:/tmp/foo/build/pyrepl/setup.py) egg_info for package pyrepl
    
    Installing collected packages: pdbpp, fancycompleter, wmctrl, pygments, pyrepl
      Running setup.py install for pdbpp
        [pdb++] WARNING: ignoring unsupported option --single-version-externally-managed
    
        installing library code to build/bdist.linux-x86_64/egg
        zip_safe flag not set; analyzing archive contents...
        pdb: module references __file__
        pdb: module MAY be using inspect.getabsfile
        pdb: module MAY be using inspect.findsource
        pdb: module MAY be using inspect.stack
        removing 'build/bdist.linux-x86_64/egg' (and everything under it)
        Processing pdbpp-0.7.2-py2.7.egg
        Extracting pdbpp-0.7.2-py2.7.egg to /tmp/foo/lib/python2.7/site-packages
        Adding pdbpp 0.7.2 to easy-install.pth file
    
        Installed /tmp/foo/lib/python2.7/site-packages/pdbpp-0.7.2-py2.7.egg
        Processing dependencies for pdbpp==0.7.2
        Searching for pygments
        Reading https://pypi.python.org/simple/pygments/
        Best match: Pygments 1.6
        Downloading https://pypi.python.org/packages/2.7/P/Pygments/Pygments-1.6-py2.7.egg#md5=1e1e52b1e434502682aab08938163034
        Processing Pygments-1.6-py2.7.egg
        Extracting Pygments-1.6-py2.7.egg to /tmp/foo/lib/python2.7/site-packages
        Adding Pygments 1.6 to easy-install.pth file
        Installing pygmentize script to /tmp/foo/bin
    
        Installed /tmp/foo/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg
        Searching for wmctrl
        Reading https://pypi.python.org/simple/wmctrl/
        Best match: wmctrl 0.1
        Downloading https://pypi.python.org/packages/source/w/wmctrl/wmctrl-0.1.tar.gz#md5=3ddc4ca04056627c8e2da1b991eaf6ba
        Processing wmctrl-0.1.tar.gz
        Writing /tmp/easy_install-jKehbl/wmctrl-0.1/setup.cfg
        Running wmctrl-0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jKehbl/wmctrl-0.1/egg-dist-tmp-HVGF_C
        zip_safe flag not set; analyzing archive contents...
        Adding wmctrl 0.1 to easy-install.pth file
    
        Installed /tmp/foo/lib/python2.7/site-packages/wmctrl-0.1-py2.7.egg
        Searching for fancycompleter>=0.2
        Reading https://pypi.python.org/simple/fancycompleter/
        Best match: fancycompleter 0.4
        Downloading https://pypi.python.org/packages/source/f/fancycompleter/fancycompleter-0.4.tar.gz#md5=44667c62c6db6318ca6482f3e0781d31
        Processing fancycompleter-0.4.tar.gz
        Writing /tmp/easy_install-Np8LaA/fancycompleter-0.4/setup.cfg
        Running fancycompleter-0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Np8LaA/fancycompleter-0.4/egg-dist-tmp-PuKT3o
        zip_safe flag not set; analyzing archive contents...
        fancycompleter: module references __file__
        Adding fancycompleter 0.4 to easy-install.pth file
    
        Installed /tmp/foo/lib/python2.7/site-packages/fancycompleter-0.4-py2.7.egg
        Searching for pyrepl>=0.8.2
        Reading https://pypi.python.org/simple/pyrepl/
        Best match: pyrepl 0.8.4
        Downloading https://pypi.python.org/packages/source/p/pyrepl/pyrepl-0.8.4.tar.gz#md5=9f02a9cc56162e2df647283d9180d7da
        Processing pyrepl-0.8.4.tar.gz
        Writing /tmp/easy_install-4tAQg7/pyrepl-0.8.4/setup.cfg
        Running pyrepl-0.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4tAQg7/pyrepl-0.8.4/egg-dist-tmp-VHUeZA
        zip_safe flag not set; analyzing archive contents...
        Adding pyrepl 0.8.4 to easy-install.pth file
        Installing pythoni1 script to /tmp/foo/bin
        Installing pythoni script to /tmp/foo/bin
    
        Installed /tmp/foo/lib/python2.7/site-packages/pyrepl-0.8.4-py2.7.egg
        Finished processing dependencies for pdbpp==0.7.2
      Could not find .egg-info directory in install record for pdbpp
      Running setup.py install for fancycompleter
    
      Running setup.py install for wmctrl
    
      Running setup.py install for pygments
    
        Installing pygmentize script to /tmp/foo/bin
      Running setup.py install for pyrepl
        changing mode of build/scripts-2.7/pythoni from 664 to 775
        changing mode of build/scripts-2.7/pythoni1 from 664 to 775
    
        changing mode of /tmp/foo/bin/pythoni to 775
        changing mode of /tmp/foo/bin/pythoni1 to 775
    Successfully installed pdbpp fancycompleter wmctrl pygments pyrepl
    Cleaning up...
    
    (foo)homer tmp $ python -c 'import pdb;pdb.set_trace()'
    --Return--
    > <string>(1)<module>()->None
    (Pdb++) 
    
  2. Aleks Bunin reporter

    I think reason it works for you, you didn't install it from wheel, but instead you installed from sources again.

    I have some environment variables set to force using wheels compiled packages

    export PIP_USE_WHEEL=y
    export PIP_NO_INDEX=y
    export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
    export PIP_FIND_LINKS="$HOME/.pip/wheel $HOME/.pip/cache"
    export PIP_WHEEL_DIR=$HOME/.pip/wheel
    

    If you don't have those folders, you need to create them prior to running pip wheel....

    Here is output I'm getting in clean venv:

    (d)host ~ $ mkvirtualenv x
    Using real prefix '/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7'
    New python executable in x/bin/python2.7
    Also creating executable in x/bin/python
    Installing setuptools, pip...done.
    
    (x)host ~ $ pip install wheel
    Ignoring indexes: https://pypi.python.org/simple/
    Downloading/unpacking wheel
    Installing collected packages: wheel
    Successfully installed wheel
    Cleaning up...
    
    (x)host ~ $  (unset PIP_NO_INDEX; pip wheel pdbpp)
    Downloading/unpacking pdbpp
      Using download cache from /Users/username/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpdbpp%2Fpdbpp-0.7.2.tar.gz
      Running setup.py (path:/Users/username/.virtualenvs/x/build/pdbpp/setup.py) egg_info for package pdbpp
    
    Downloading/unpacking fancycompleter>=0.2 (from pdbpp)
      File was already downloaded /Users/username/.pip/wheel/fancycompleter-0.4-py2-none-any.whl
    Downloading/unpacking wmctrl (from pdbpp)
      Using download cache from /Users/username/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fw%2Fwmctrl%2Fwmctrl-0.1.tar.gz
      Running setup.py (path:/Users/username/.virtualenvs/x/build/wmctrl/setup.py) egg_info for package wmctrl
    
    Downloading/unpacking pygments (from pdbpp)
      Using download cache from /Users/username/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPygments%2FPygments-1.6.tar.gz
      Running setup.py (path:/Users/username/.virtualenvs/x/build/pygments/setup.py) egg_info for package pygments
    
    Downloading/unpacking pyrepl>=0.8.2 (from fancycompleter>=0.2->pdbpp)
      Using download cache from /Users/username/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpyrepl%2Fpyrepl-0.8.4.tar.gz
      Running setup.py (path:/Users/username/.virtualenvs/x/build/pyrepl/setup.py) egg_info for package pyrepl
    
    Building wheels for collected packages: pdbpp,wmctrl,pygments,pyrepl
      Running setup.py bdist_wheel for pdbpp
      Destination directory: /Users/username/.pip/wheel
      Running setup.py bdist_wheel for wmctrl
      Destination directory: /Users/username/.pip/wheel
      Running setup.py bdist_wheel for pygments
      Destination directory: /Users/username/.pip/wheel
      Running setup.py bdist_wheel for pyrepl
      Destination directory: /Users/username/.pip/wheel
    Successfully built pdbpp wmctrl pygments pyrepl
    Cleaning up...
    
    
    (x)host ~ $ pip install pdbpp
    Ignoring indexes: https://pypi.python.org/simple/
    Downloading/unpacking pdbpp
    Downloading/unpacking wmctrl (from pdbpp)
    Downloading/unpacking pygments (from pdbpp)
    Downloading/unpacking fancycompleter>=0.2 (from pdbpp)
    Downloading/unpacking pyrepl>=0.8.2 (from fancycompleter>=0.2->pdbpp)
    Installing collected packages: pdbpp, wmctrl, pygments, fancycompleter, pyrepl
    Successfully installed pdbpp wmctrl pygments fancycompleter pyrepl
    Cleaning up...
    
    (x)host ~ $ python -c 'import pdb;pdb.set_trace()'
    --Return--
    > <string>(1)<module>()->None
    (Pdb)
    
  3. Marc Abramowitz

    OK, so I was just able to reproduce this:

    [marca@marca-mac2 ~]$ mktmpenv
    New python executable in tmp-3c1b26c1a31ffe14/bin/python
    Please make sure you remove any previous custom paths from your /Users/marca/.pydistutils.cfg file.
    Installing setuptools, pip...done.
    Python 2.7.9
    setuptools 3.6
    pip 1.5.6 from /Users/marca/python/virtualenvs/tmp-3c1b26c1a31ffe14/lib/python2.7/site-packages (python 2.7)
    This is a temporary environment. It will be deleted when you run 'deactivate'.
    
    [marca@marca-mac2 ~VIRTUAL_ENV]$ pip install ~/dev/hg-repos/pdb/dist/pdbpp-0.8.dev0-py2-none-any.whl
    Processing /Users/marca/dev/hg-repos/pdb/dist/pdbpp-0.8.dev0-py2-none-any.whl
    Collecting fancycompleter>=0.2 (from pdbpp==0.8.dev0)
      Using cached fancycompleter-0.4.tar.gz
    Collecting pygments (from pdbpp==0.8.dev0)
      Using cached Pygments-2.0.2-py2-none-any.whl
    Collecting backports.inspect (from pdbpp==0.8.dev0)
      Using cached backports.inspect-0.0.2.tar.gz
    Collecting wmctrl (from pdbpp==0.8.dev0)
      Using cached wmctrl-0.1.tar.gz
    Collecting ordereddict (from pdbpp==0.8.dev0)
      Using cached ordereddict-1.1.tar.gz
    Collecting pyrepl>=0.8.2 (from fancycompleter>=0.2->pdbpp==0.8.dev0)
      Using cached pyrepl-0.8.4.tar.gz
    Collecting distribute (from backports.inspect->pdbpp==0.8.dev0)
      Using cached distribute-0.7.3.zip
    Collecting funcsigs==0.2 (from backports.inspect->pdbpp==0.8.dev0)
      Using cached funcsigs-0.2.tar.gz
        Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
        Extracting in /var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/tmpjlF8ct
        Now working in /var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/tmpjlF8ct/distribute-0.6.34
        Building a Distribute egg in /private/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pip-build-6mB6BC/funcsigs
        /private/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pip-build-6mB6BC/funcsigs/distribute-0.6.34-py2.7.egg
    Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in ./lib/python2.7/site-packages (from distribute->backports.inspect->pdbpp==0.8.dev0)
    Installing collected packages: funcsigs, distribute, pyrepl, ordereddict, wmctrl, backports.inspect, pygments, fancycompleter, pdbpp
      Running setup.py install for funcsigs
      Running setup.py install for distribute
      Running setup.py install for pyrepl
        changing mode of build/scripts-2.7/pythoni from 644 to 755
        changing mode of build/scripts-2.7/pythoni1 from 644 to 755
        changing mode of /Users/marca/python/virtualenvs/tmp-3c1b26c1a31ffe14/bin/pythoni to 755
        changing mode of /Users/marca/python/virtualenvs/tmp-3c1b26c1a31ffe14/bin/pythoni1 to 755
      Running setup.py install for ordereddict
      Running setup.py install for wmctrl
      Running setup.py install for backports.inspect
        Skipping installation of /Users/marca/python/virtualenvs/tmp-3c1b26c1a31ffe14/lib/python2.7/site-packages/backports/__init__.py (namespace package)
        Installing /Users/marca/python/virtualenvs/tmp-3c1b26c1a31ffe14/lib/python2.7/site-packages/backports.inspect-0.0.2-py2.7-nspkg.pth
    
      Running setup.py install for fancycompleter
    
    Successfully installed backports.inspect-0.0.2 distribute-0.7.3 fancycompleter-0.4 funcsigs-0.2 ordereddict-1.1 pdbpp-0.8.dev0 pygments-2.0.2 pyrepl-0.8.4 wmctrl-0.1
    
    [marca@marca-mac2 ~VIRTUAL_ENV]$ python -c 'import pdb;pdb.set_trace()'
    --Return--
    > <string>(1)<module>()->None
    (Pdb)
    
    [marca@marca-mac2 ~VIRTUAL_ENV]$ pip freeze
    Pygments==2.0.2
    backports.inspect==0.0.2
    fancycompleter==0.4
    funcsigs==0.2
    ordereddict==1.1
    pdbpp==0.8.dev0
    pyrepl==0.8.4
    wmctrl==0.1
    wsgiref==0.1.2
    
    [marca@marca-mac2 ~VIRTUAL_ENV]$ python -c 'import pdb; print(pdb)'
    <module 'pdb' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pdb.pyc'>
    

    For some reason, pdbpp is not overriding -- my guess is that the sys.path has the location of the wheel after the location of the stdlib, but someone will have to investigate a bit more.

  4. Marc Abramowitz
    [marca@marca-mac2 ~VIRTUAL_ENV]$ python
    Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> print("\n".join((repr(p) for p in enumerate(sys.path))))
    (0, '')
    (1, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python27.zip')
    (2, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7')
    (3, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-darwin')
    (4, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac')
    (5, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac/lib-scriptpackages')
    (6, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-tk')
    (7, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-old')
    (8, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-dynload')
    (9, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7')
    (10, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin')
    (11, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk')
    (12, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac')
    (13, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages')
    (14, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages')
    >>> import pdb
    >>> pdb
    <module 'pdb' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pdb.pyc'>
    

    Note that Python is picking up the stdlib pdb from sys.path index 9, whereas pdbpp got installed in the directory at index 14.

    By manipulating sys.path, I can get it to load pdbpp instead of the stdlib pdb.

    >>> import os
    >>> sys.path.insert(0, os.path.expandvars('${VIRTUAL_ENV}/lib/python2.7/site-packages'))
    >>>
    >>> print("\n".join((repr(p) for p in enumerate(sys.path))))
    (0, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages')
    (1, '')
    (2, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python27.zip')
    (3, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7')
    (4, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-darwin')
    (5, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac')
    (6, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac/lib-scriptpackages')
    (7, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-tk')
    (8, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-old')
    (9, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-dynload')
    (10, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7')
    (11, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin')
    (12, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk')
    (13, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac')
    (14, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages')
    (15, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages')
    >>> import pdb
    >>> pdb
    <module 'pdb' from '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages/pdb.pyc'>
    
  5. Marc Abramowitz

    By contrast, if I install from an sdist instead of a wheel, I end up with a .egg file close to the beginning of sys.path

    [marca@marca-mac2 ~VIRTUAL_ENV]$ python
    Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> print("\n".join((repr(p) for p in enumerate(sys.path))))
    (0, '')
    (1, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages/pdbpp-0.8.dev0-py2.7.egg')
    (2, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python27.zip')
    (3, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7')
    (4, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-darwin')
    (5, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac')
    (6, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/plat-mac/lib-scriptpackages')
    (7, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-tk')
    (8, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-old')
    (9, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/lib-dynload')
    (10, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7')
    (11, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin')
    (12, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk')
    (13, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac')
    (14, '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages')
    (15, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages')
    (16, '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages')
    >>> import pdb
    >>> pdb
    <module 'pdb' from '/Users/marca/python/virtualenvs/tmp-b6b0f4fbc69fbf9/lib/python2.7/site-packages/pdbpp-0.8.dev0-py2.7.egg/pdb.pyc'>
    
  6. Marc Abramowitz

    @antocuni: What do you think?

    Should pdb++ expose a pdbpp module (in addition to pdb?) so that folks can at least do:

    import pdbpp; pdbpp.set_trace()
    

    or perhaps even:

    import pdbpp as pdb
    ...
    pdb.set_trace()
    

    ???

  7. Antonio Cuni repo owner

    yes, if there is no other way to make the wheel working, I think that having a pdbpp module is a reasonable workaround. But it needs to be properly documented.

  8. Aleks Bunin reporter

    I can confirm, that building wheel and installing from it gives me working pdb++.

    Thank you!

  9. Log in to comment