Menu

#1024 Silently setting environment variables

2.4.0
closed-fixed
Scott
None
6
2015-03-04
2014-07-07
klo
No

Hi,

after installing vapor-2.3.0-win64 on Windows 8.1, I later noticed this environment variable changes:

IDL_DLM_PATH=C:\Program Files\NCAR\VAPOR\bin
Path=C:\Program Files\NCAR\VAPOR\bin;%PATH%
PYTHONHOME=C:\Program Files\NCAR\VAPOR\lib\python2.7
VAPOR_HOME=C:\Program Files\NCAR\VAPOR\
VAPOR_SHARE=C:\Program Files\NCAR\VAPOR\share

I wasn't informed by installation package about these changes, while I would expect at least confirmation for changing PATH variable and setting PYTHONPATH.

  1. Injecting in PATH string as first member, without confirmation is simply rude and bad practice of overriding other PATH members. Then why it needs changing PATH at all, not mentioning after introducing so many other variables...

  2. Now every other program ships with bundled Python distribution. What would happen if everyone just sets and depends on PYTHONHOME to their wish? None will work except later and more importantly my system Python and programs that depend on it will stop working for no apparent reason!

  3. Some variables are left after uninstalling.

Discussion

  • Alan Norton

    Alan Norton - 2014-07-07
    • assigned_to: Alan Norton
    • Priority: 5 --> 6
     
  • Alan Norton

    Alan Norton - 2014-10-07
     
  • Alan Norton

    Alan Norton - 2014-10-07

    With changes checked in on 10/7/14: The PYTHONHOME variable is ignored by vaporgui. Instead users must set VAPOR_PYTHONHOME to change where vapor python is located.
    The windows installer still needs to be modified to indicate the change to PATH.

     
  • Alan Norton

    Alan Norton - 2014-11-07

    PYTHONHOME is still required to be set to import numpy (as of 11/7/14). Using _putenv() does not have the desired effect.

     
  • clynejp

    clynejp - 2014-11-24
    • status: open --> open-postponed
     
  • Alan Norton

    Alan Norton - 2014-12-17
    • Status: open-postponed --> open
     
  • Alan Norton

    Alan Norton - 2015-02-11

    Reassigning to scott since he is working on this.

     
  • Alan Norton

    Alan Norton - 2015-02-11
    • assigned_to: Alan Norton --> Scott
     
  • Alan Norton

    Alan Norton - 2015-02-25
    • status: open --> closed-fixed
     
  • Alan Norton

    Alan Norton - 2015-02-25

    With the latest 2.4.0 installer, neither the Path nor PYTHONHOME are set in the environment. The un-setting is working OK too.

     
  • clynejp

    clynejp - 2015-03-04
    • Group: 1.1 --> 2.4.0
     

Log in to post a comment.

MongoDB Logo MongoDB