1423 Record information about the way eric was installed. |
1423 Record information about the way eric was installed. |
1424 """ |
1424 """ |
1425 global createInstallInfoFile, installInfo, installCwd, cfg |
1425 global createInstallInfoFile, installInfo, installCwd, cfg |
1426 |
1426 |
1427 if createInstallInfoFile: |
1427 if createInstallInfoFile: |
1428 installDateTime = datetime.datetime.now(tz=None) |
1428 installDateTime = datetime.datetime.now(tz=datetime.timezone.utc) |
1429 try: |
1429 try: |
1430 installInfo["sudo"] = os.getuid() == 0 |
1430 installInfo["sudo"] = os.getuid() == 0 |
1431 except AttributeError: |
1431 except AttributeError: |
1432 installInfo["sudo"] = False |
1432 installInfo["sudo"] = False |
1433 installInfo["user"] = getpass.getuser() |
1433 installInfo["user"] = getpass.getuser() |
1726 "trove-classifiers": ("trove_classifiers", ""), |
1726 "trove-classifiers": ("trove_classifiers", ""), |
1727 "black": ("black", ">=22.6.0"), |
1727 "black": ("black", ">=22.6.0"), |
1728 "isort": ("isort", ">=5.10.0"), |
1728 "isort": ("isort", ">=5.10.0"), |
1729 "coverage": ("coverage", ">=6.5.0"), |
1729 "coverage": ("coverage", ">=6.5.0"), |
1730 "semver": ("semver", ""), |
1730 "semver": ("semver", ""), |
|
1731 "pipdeptree": ("pipdeptree", ""), |
1731 } |
1732 } |
1732 optionalModulesList = { |
1733 optionalModulesList = { |
1733 # key is pip project name |
1734 # key is pip project name |
1734 # value is tuple of package name, pip install constraint |
1735 # value is tuple of package name, pip install constraint |
1735 "docutils": ("docutils", ""), |
1736 "docutils": ("docutils", ""), |