1

Problem:

I'd like to install Pmw 2.0.0 (project page here) so that I can use it with tkinter in python3. The setup script from the package detects which version of python you're using and installs the version that is appropriate for your system (Ubuntu 15 in my case). I can't find any references to switches to make it install the 2.0.0 instead of 1.3.3(the Python 2.7 version), nor have I been able to get the script to install to the python3 libraries.

What I've done so far:

I've changed the python version detector in the setup script from

if sys.version_info[0]<3:
    version='2.0.0' # really '1.3.3'
    packages=['Pmw', 'Pmw.Pmw_1_3_3', 'Pmw.Pmw_1_3_3.lib',]

to

if sys.version_info[0]<2:
    version='2.0.0' # really '1.3.3'
    packages=['Pmw', 'Pmw.Pmw_1_3_3', 'Pmw.Pmw_1_3_3.lib',]

to attempt to force the installer to default to the python3 version, which it does, but it installs them in the python2.7 libraries (/usr/local/lib/python2.7/distpackages).

What I want to do:

I'm looking for a way to force the installer to put the 3.4-compatible package into the python3 libraries. If that means getting it to install both packages in their respective correct directories, that's fine, too. I'm stumped about what to try next.

1 Answer 1

1

I have just installed Pmw 2.0.0 using python3 on LinuxMint 17. I downloaded the current release candidate from here and performed the following three steps:

  1. python3 setup.py config
  2. python3 setup.py build
  3. python3 setup.py install

I assume that you typed python instead of python3, but please correct me if I'm wrong. Using python instead of python3 will cause the installation to that version's site-packages directory instead of the desired one.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .