Roundup Tracker - Issues

Message7429

Author rouilj
Recipients rouilj
Date 2021-12-23.22:14:51
Message-id <1640297691.86.0.410902650561.issue2551185@roundup.psfhosted.org>
In-reply-to
Even worse, if the /tmp/r2/lib/python-2.7/site-packages directory doesn't exist
it blows up.

Running:

 python2 ./setup.py install --prefix /tmp/r2

to create the full path then running with PYTHONPATH works. 8-(.

I tracked it down to it's doing an egg install at:

> /usr/lib/python2.7/dist-packages/setuptools/command/install.py(67)run()
-> self.do_egg_install()
(Pdb) l
 62
 63 B           if not self._called_from_setup(inspect.currentframe()):
 64                 # Run in backward-compatibility mode to support bdist_* commands.
 65                 orig.install.run(self)
 66             else:
 67  ->             self.do_egg_install()

even though:

  (Pdb) p not self._called_from_setup(inspect.currentframe())
  True

so it should be running orig.install.run(self). WTH?

Also running:

 (Pdb)  p orig.install.run(self)

does exactly what is expected.
History
Date User Action Args
2021-12-23 22:14:51rouiljsetmessageid: <1640297691.86.0.410902650561.issue2551185@roundup.psfhosted.org>
2021-12-23 22:14:51rouiljsetrecipients: + rouilj
2021-12-23 22:14:51rouiljlinkissue2551185 messages
2021-12-23 22:14:51rouiljcreate