File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22#
33# Copyright (C) 2008-2016 CEA/DAM
4- # Copyright (C) 2016-2017 Stephane Thiell <[email protected] > 4+ # Copyright (C) 2016-2018 Stephane Thiell <[email protected] > 55#
66# This file is part of ClusterShell.
77#
2323from setuptools import setup , find_packages
2424
2525
26- if os .geteuid () == 0 :
27- # System-wide, out-of-prefix config install (rpmbuild or pip as root)
28- CFGDIR = '/etc/clustershell'
29- else :
30- # User, in-prefix config install (rpmbuild or pip as user)
31- CFGDIR = 'etc/clustershell'
32-
3326VERSION = '1.8'
3427
28+ # Default CFGDIR: in-prefix config install (rpmbuild or pip as user)
29+ CFGDIR = 'etc/clustershell'
30+
31+ # Use system-wide CFGDIR instead when installing as root on Unix
32+ try :
33+ if os .geteuid () == 0 :
34+ CFGDIR = '/etc/clustershell'
35+ except AttributeError : # Windows?
36+ pass
37+
3538# Dependencies (for pip install)
3639REQUIRES = ['PyYAML' ]
3740
You can’t perform that action at this time.
0 commit comments