Conversation
I am proposing to update setup.py file to dynamically read DB2 include dataset ($IBM_DB_HOME.SDSNC.H) from the environment variable. Hardcoding this dataset in setup.py file creates problem for the application having custom dataset names.
|
I guess this is a standard set for using the naming convention. And hence this is kept hidden from user and the setup is done automatically. introducing a new environment variable will create additional task for educating the already existing users. I would appreciate your feedback on the same. |
|
@kparihar7 |
|
This is a required dataset for installing ibm_db package and have seen Applications are having same dataset defined with different names. Making this dataset name hardcoded in setup.py file throws error while installing it. |
|
thanks @kparihar7. |
|
Hi @kparihar7 so that means your suggestion of hardcoding is applicable here as well? Can this be defined with a different name as well? NOTE: Ideally SDSNMACS, SDSNLOAD and SDSNC.H are expected to be under the same HLQ i.e. prefix remains the same for all of these. Kindly clarify a bit more. |
|
@AWADHAMBIKA For the existing user, who have already installed this should not get any issue as this is in installation only and later if any update comes to this package then they can always update their package with this new instruction. |
|
@AWADHAMBIKA We should handle this dataset also same like others, so that there will not be any hardcoding in setup.py file and whatever is required can be passed through environment file. |
|
@kparihar7 Sorry I couldn't quite get your point. We don't want to make it complicated for all the 99.9% of customers where the HLQ is the same or are having standard libraries. Hence we are adding a condition to accommodate .1% of customer like you who has a different library set i.e. and if this is done for one library it needs to be done fo another one as well. |
Got it. Let me check and get back to you. |
I am okay for this change but along with this then we need to update its install.md file also and can specify whoever has standard library name, DB2_INC variable is not required for them. Others need to provide this variable. |
|
@kparihar7 Do you have SDSNMACS and SDSNC.H under different HLQs or renamed SDSNC.H to something different? |
@jthyssenrocket I have all these datasets under same HLQ but SDSNC.H is renamed to DSNC.H. |
|
Thanks, I've never seen that done before. |
|
So, the new code to handle above discussion will be: agreed? And the corresponding new variables i.e. DB2_INC & DB2_MACS will be updated in install.md with comments. |
@AWADHAMBIKA |
|
sure.. |
* Update README with new release version (Bimal Kumar Jha) * typo correction in README.md (Bimal Kumar Jha) * testcase change for ZOS platform and zos server (Arnab Mukherjee) * changing the release tag (Arnab Mukherjee) * Add comments (kotofos) * Fix error message formatting on python3 (kotofos) * Dev release304 (#621) (arnab mukherjee) * Update README.md (#617) (Alexander Manley) * Code fix in SQL_BOOLEAN (Arnab Mukherjee) * update install.md file with the latest information on ZOS platform documentation (Arnab Mukherjee) * Fix for #612 (Arnab Mukherjee) * Boolean support for django issue (Arnab Mukherjee) * Adding changes to handle env variable DB2_IBC and DB2_MACS in case user wants to define their own dataset names (Arnab Mukherjee) * Support ODBC keyword CURRENTSCHEMA (#581) (Ke Zhu) * Update Install.md (#605) (kparihar7) * Update setup.py file (#606) (kparihar7) * Get execute_many test running clean in CI (#524) (davidmmooney) * Update README.md (Bimal Kumar Jha) * Update file name in setup.py (Bimal Kumar Jha) * Update MANIFEST.in (arnab mukherjee) * Update notifications and add python 3.9 test (Bimal Kumar Jha) * Change in install.md as per input from IBM as the ++APAR is now available as PTF. (#597) (Binit Kumar) * fix: correct changes file (Bimal Jha) * upd: CHANGES (Bimal Jha) * deleting Install_z_ibm_db file (amukherjee) * Changes for Z/os support along with python 3.9 (amukherjee) * Readme and install file releated changes (Arnab Mukherjee) * Z odbc support (#579) (Binit Kumar) * Update README.md (Saba Kauser) * Update README.md (#544) (Saba Kauser) * add v11.1 support for win32 and mac (Saba Kauser) * add v11.1 support for win32 and Mac (Saba Kauser) * Add dependent libraries for docker linux in README (Saba Kauser) * new test canse for bool (#527) (Saba Kauser) * Update CHANGES (Saba Kauser)
I am proposing to update setup.py file to dynamically read DB2 include dataset ($IBM_DB_HOME.SDSNC.H) from the environment variable.
Hardcoding this dataset in setup.py file creates problem for the application having custom dataset names.