[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-25 Thread Saba Kauser
Change by Saba Kauser : -- components: +Distutils -Build nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-21 Thread Saba Kauser
Saba Kauser added the comment: I have debugged this further. The problem seems be happening due to usage of get_python_lib(). e.g: if('darwin' in sys.platform): class PostInstall(install): """ Post installation - run install_name_tool on Darwin """ def run(self):

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-18 Thread Saba Kauser
Saba Kauser added the comment: I was able to determine the reason. When running through anaconda, the pip copies ibm_db.so to site-packages path. However, as logged in user, install_name_tool fails with permission denied error. BLR-D-MACOS03:site-packages skauser$ install_name_tool -change

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
Saba Kauser added the comment: Thanks Karthikeyan. The behavior is specific to anaconda when I use the python/pip that comes with it. When I use the pip from anaconda, e.g:/Users/skauser/anaconda3/bin/pip pip install ibm_db Installation is success,but when I import ibm_db, I get this error

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Anacond and ibm_db are not part of CPython distribution. Can you please add a script and explain over how it's a bug with CPython? There are also previous reports when searching for "ibm_db" and I am not sure if these are bugs with CPython too.

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Saba Kauser
New submission from Saba Kauser : Hi, I have added a post install class that's working fine when I do "pip install ibm_db" on MAC. However, when I use the python/pip from anaconda3(python 3.7), the same pip is not executing the post install script. Can some one please take a look at assist.