This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sabakauser
Recipients sabakauser
Date 2019-03-13.13:22:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552483374.77.0.941742991683.issue36269@roundup.psfhosted.org>
In-reply-to
Content
I am able to get this to work.
I just needed to invoke parent's run prior to the post install commands.

if('darwin' in sys.platform):
    class PostInstall(install):
        """ Post installation - run install_name_tool on Darwin """
        def run(self):
            install.run(self)
            clipath = os.getenv('IBM_DB_HOME', '@loader_path/clidriver')
            print("in PostInstall with {}".format(clipath))
            for so in glob.glob(r'build/lib*/ibm_db*.so'):
                os.system("install_name_tool -change libdb2.dylib {}/lib/libdb2.dylib {}".format(clipath, so))
            
    cmd_class = dict(install = PostInstall)
History
Date User Action Args
2019-03-13 13:22:54sabakausersetrecipients: + sabakauser
2019-03-13 13:22:54sabakausersetmessageid: <1552483374.77.0.941742991683.issue36269@roundup.psfhosted.org>
2019-03-13 13:22:54sabakauserlinkissue36269 messages
2019-03-13 13:22:54sabakausercreate