Skip to content

Where should etc/ be for Python 3 based installations? #5082

Description

@chrisburr

Yeah, the current place the dirac.cfg file and the grid-security directory ends up is definitely wrong (lib/pythonX.Y/site-packages/etc/).

I'm not sure what the "right" solution is, this is in incoherent dump but...

  1. diracos/etc/: Cleaner, but gets deleted every time there is an update
  2. diracos/../etc/: What happens when you install a client with pip or conda directly?
  3. diracos/etc/ and symlink to one level higher: Better but we have to make multiple symlinks, one for dirac.cfg, one for etc/grid-security/certificates, one for etc/grid-security/voms, one for etc/grid-security/vomsdir, ...
  4. diracos/etc/dirac/ which is a symlink to a stable location
  5. diracos/etc/ but let it always be overridden by an environment variable ($DIRAC_ETC_DIR)
  6. Lots of combinations of the above

I'm tempted towards (5) and this would also make it easier to have a shared installation on CVMFS. I'm also undecided about if we want to set the X509 variables as part of this.

Originally posted by @chrisburr in #5000 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions