Distribute install switches to backwards-compatiblity mode when install command is subclassed

Create issue
Issue #351 new
David Lowe created an issue

The issue arises because of these lines of code:


The code automatically switches to backwards-compatibility mode (without warning) when the caller stack doesn't match the expected stack.

At the very least, a message should be logged informing the user that backwards-compatibility mode has been enabled.

Preferably, the mechanism used to detect this should be improved, it fails this use-case:

from setuptools import setup
import setuptools

class custom_install(setuptools.command.install.install):
    def run(self):
        # add code here

    # ...
    cmdclass={'install' : custom_install},

Comments (0)

  1. Log in to comment