eric7.eric7_post_install

Module implementing the post install logic for 'pip install'.

Global Attributes

None

Classes

None

Functions

copyDesktopFile Modify a desktop file and write it to its destination.
copyLinuxMetaData Function to copy the meta data files.
copyMetaFile Function to copy a file to its destination.
createWindowsLinks Create Desktop and Start Menu links.
main Main script orchestrating the platform dependent post installation tasks.
windowsDesktopEntries Function to generate data for the Windows Desktop links.
windowsProgramsEntry Function to generate the name of the Start Menu top entry.


copyDesktopFile

copyDesktopFile(src, dstPath, dstFile, scriptsdir)

Modify a desktop file and write it to its destination.

src (str)
source file name
dstPath (str)
path name of the directory for the file to be written
dstFile (str)
name of the file to be written
scriptsdir (str)
directory containing the scripts
Up


copyLinuxMetaData

copyLinuxMetaData()

Function to copy the meta data files.

Up


copyMetaFile

copyMetaFile(srcname, dstpath, dstname)

Function to copy a file to its destination.

srcname (str)
name of the source file
dstpath (str)
name of the destination path
dstname (str)
name of the destination file (without path)
Up


createWindowsLinks

createWindowsLinks()

Create Desktop and Start Menu links.

Up


main

main()

Main script orchestrating the platform dependent post installation tasks.

Up


windowsDesktopEntries

windowsDesktopEntries(startmenu=False)

Function to generate data for the Windows Desktop links.

startmenu (bool (optional))
flag indicating to get the entries for the start menu (defaults to False)
Return:
list of tuples containing the desktop link name, the link target and the icon target
Return Type:
list of tuples of (str, str, str)
Up


windowsProgramsEntry

windowsProgramsEntry()

Function to generate the name of the Start Menu top entry.

Return:
name of the Start Menu top entry
Return Type:
str
Up