install.py

changeset 6641
42de1c3e8777
parent 6640
b7e8d080989e
child 6645
ad476851d7e0
equal deleted inserted replaced
6640:b7e8d080989e 6641:42de1c3e8777
1937 installApis = False 1937 installApis = False
1938 1938
1939 infoName = "" 1939 infoName = ""
1940 installFromSource = not os.path.isdir(sourceDir) 1940 installFromSource = not os.path.isdir(sourceDir)
1941 1941
1942 # check dependencies
1943 if depChecks:
1944 doDependancyChecks()
1945
1942 # cleanup source if installing from source 1946 # cleanup source if installing from source
1943 if installFromSource: 1947 if installFromSource:
1944 print("Cleaning up source ...") 1948 print("Cleaning up source ...")
1945 sourceDir = os.path.dirname(__file__) or "." 1949 sourceDir = os.path.dirname(__file__) or "."
1946 cleanupSource(sourceDir) 1950 cleanupSource(sourceDir)
1954 infoName = os.path.join(sourceDir, "UI", "Info.py") 1958 infoName = os.path.join(sourceDir, "UI", "Info.py")
1955 prepareInfoFile(infoName) 1959 prepareInfoFile(infoName)
1956 1960
1957 if len(cfg) == 0: 1961 if len(cfg) == 0:
1958 createInstallConfig() 1962 createInstallConfig()
1959
1960 if depChecks:
1961 doDependancyChecks()
1962 1963
1963 # get rid of development config file, if it exists 1964 # get rid of development config file, if it exists
1964 try: 1965 try:
1965 if installFromSource: 1966 if installFromSource:
1966 os.rename(configName, configName + ".orig") 1967 os.rename(configName, configName + ".orig")

eric ide

mercurial