Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-29431

Change envAppend to envPrepend

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There are several Python packages in the stack, where the package's python directory is appended to PYTHONPATH environment variable instead of prepending. This should be fixed across all packages in the stack.

       

      This ticket is filed motivated by this conversation in a code review: https://github.com/lsst-dm/meas_extensions_gaap/pull/3#discussion_r578639435

        Attachments

          Issue Links

            Activity

            No builds found.
            kannawad Arun Kannawadi created issue -
            kannawad Arun Kannawadi made changes -
            Field Original Value New Value
            Epic Link DM-29152 [ 458509 ]
            kannawad Arun Kannawadi made changes -
            Assignee Arun Kannawadi [ kannawad ]
            kannawad Arun Kannawadi made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            Hide
            kannawad Arun Kannawadi added a comment - - edited

            This is a continuation of organization-wide move to change `envAppend`s to `envPrepend`s, similar to the commits named "Replace envAppend with envPrepend in ups table files." by Robyn AllsMann in Nov 2014.

            Show
            kannawad Arun Kannawadi added a comment - - edited This is a continuation of organization-wide move to change `envAppend`s to `envPrepend`s, similar to the commits named "Replace envAppend with envPrepend in ups table files." by Robyn AllsMann in Nov 2014.
            Show
            kannawad Arun Kannawadi added a comment - Jenkins:  https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/34080/pipeline
            kannawad Arun Kannawadi made changes -
            Link This issue relates to DM-868 [ DM-868 ]
            kannawad Arun Kannawadi made changes -
            Story Points 1
            kannawad Arun Kannawadi made changes -
            Description There are several Python packages in the stack, where the package's python directory is appended to PYTHONPATH environment variable instead of prepending. This should be fixed across all packages in the stack. There are several Python packages in the stack, where the package's python directory is appended to PYTHONPATH environment variable instead of prepending. This should be fixed across all packages in the stack.

             

            This ticket is filed motivated by this conversation in a code review: https://github.com/lsst-dm/meas_extensions_gaap/pull/3#discussion_r578639435
            kannawad Arun Kannawadi made changes -
            Labels PairCoding
            Hide
            ktl Kian-Tat Lim added a comment -

            Note that many of these packages are obsolete and unused, but fixing them doesn't hurt.

            Show
            ktl Kian-Tat Lim added a comment - Note that many of these packages are obsolete and unused, but fixing them doesn't hurt.
            Hide
            tjenness Tim Jenness added a comment -

            I think jointcal, fgcm, meas_extensions_convolved, and meas_algorithms are the ones that need fixing.

            Show
            tjenness Tim Jenness added a comment - I think jointcal, fgcm, meas_extensions_convolved, and meas_algorithms are the ones that need fixing.
            Hide
            kannawad Arun Kannawadi added a comment -

            Agreed. I was wondering about that when I checked out some of these packages since I had never heard of them. Since this is nevertheless org-wide, would you mind reviewing the PRs Kian-Tat Lim

            Show
            kannawad Arun Kannawadi added a comment - Agreed. I was wondering about that when I checked out some of these packages since I had never heard of them. Since this is nevertheless org-wide, would you mind reviewing the PRs Kian-Tat Lim ? 
            Hide
            kannawad Arun Kannawadi added a comment -

            The only commit that is different is this in sims_selfcal package (if relevant), where including LD_LIBRARY_PATH and DYLD_LIBRARY_PATH are removed since they are Python-only packages.

            Show
            kannawad Arun Kannawadi added a comment - The only commit that is different is this  in sims_selfcal package (if relevant), where including LD_LIBRARY_PATH and DYLD_LIBRARY_PATH are removed since they are Python-only packages.
            Hide
            kannawad Arun Kannawadi added a comment -

            Tim Jenness, I don't see the use of envAppend in fgcmcal

            Show
            kannawad Arun Kannawadi added a comment - Tim Jenness , I don't see the use of envAppend in fgcmcal
            Show
            tjenness Tim Jenness added a comment - https://github.com/lsst/fgcm/blob/master/ups/fgcm.table
            Hide
            kannawad Arun Kannawadi added a comment -

            Thanks, fixed it. I'll let Eli merge the PR to fgcm when convenient. For other packages, would either Tim or K-T be the reviewers?

            Show
            kannawad Arun Kannawadi added a comment - Thanks, fixed it. I'll let Eli merge the PR to fgcm when convenient. For other packages, would either Tim or K-T be the reviewers?
            kannawad Arun Kannawadi made changes -
            Status In Progress [ 3 ] In Review [ 10004 ]
            kannawad Arun Kannawadi made changes -
            Reviewers Kian-Tat Lim [ ktl ]
            kannawad Arun Kannawadi made changes -
            Status In Review [ 10004 ] In Progress [ 3 ]
            kannawad Arun Kannawadi made changes -
            Status In Progress [ 3 ] In Review [ 10004 ]
            Hide
            ktl Kian-Tat Lim added a comment -

            A problem with obs_wiyn, and I think lsstserver should remain as is, but otherwise OK.

            Show
            ktl Kian-Tat Lim added a comment - A problem with obs_wiyn, and I think lsstserver should remain as is, but otherwise OK.
            ktl Kian-Tat Lim made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            Hide
            kannawad Arun Kannawadi added a comment -

            Fixed the problem with obs_wiyn and merged all PRs except the lsstserver package one. Marking it as Done now.

            Show
            kannawad Arun Kannawadi added a comment - Fixed the problem with obs_wiyn and merged all PRs except the lsstserver package one. Marking it as Done now.
            kannawad Arun Kannawadi made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]

              People

              Assignee:
              kannawad Arun Kannawadi
              Reporter:
              kannawad Arun Kannawadi
              Reviewers:
              Kian-Tat Lim
              Watchers:
              Arun Kannawadi, Kian-Tat Lim, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.