64 os.path.splitext(fname)[1] in extensions |
64 os.path.splitext(fname)[1] in extensions |
65 ): |
65 ): |
66 filesList.append( |
66 filesList.append( |
67 os.path.relpath(os.path.join(dirpath, fname), package)) |
67 os.path.relpath(os.path.join(dirpath, fname), package)) |
68 return filesList |
68 return filesList |
69 |
|
70 |
|
71 def getDataFiles(): |
|
72 """ |
|
73 Function to return data_files in a platform dependent manner. |
|
74 |
|
75 @return list containing the platform specific data files |
|
76 @rtype list of tuples of (str, list of str) |
|
77 """ |
|
78 if sys.platform.startswith('linux'): |
|
79 dataFiles = [ |
|
80 ('share/applications', [ |
|
81 'linux/eric7.desktop', |
|
82 'linux/eric7_browser.desktop', |
|
83 ]), |
|
84 ('share/icons', [ |
|
85 'eric7/icons/breeze-dark/eric.svg', |
|
86 'eric7/icons/breeze-dark/ericWeb48.svg', |
|
87 'eric7/pixmaps/eric48_icon.png', |
|
88 'eric7/pixmaps/ericWeb48_icon.png' |
|
89 ]), |
|
90 ('share/appdata', ['linux/eric7.appdata.xml']), |
|
91 ('share/metainfo', ['linux/eric7.appdata.xml']), |
|
92 ] |
|
93 elif sys.platform.startswith(("win", "cygwin")): |
|
94 dataFiles = [ |
|
95 ('scripts', [ |
|
96 'eric7/pixmaps/eric7.ico', |
|
97 'eric7/pixmaps/ericWeb48.ico']) |
|
98 ] |
|
99 else: |
|
100 dataFiles = [] |
|
101 return dataFiles |
|
102 |
69 |
103 |
70 |
104 def getLongDescription(): |
71 def getLongDescription(): |
105 """ |
72 """ |
106 Function to get the long description via the README file. |
73 Function to get the long description via the README file. |
363 "cyclonedx-python-lib", |
330 "cyclonedx-python-lib", |
364 "cyclonedx-bom", |
331 "cyclonedx-bom", |
365 "trove-classifiers", |
332 "trove-classifiers", |
366 "pywin32>=1.0;platform_system=='Windows'", |
333 "pywin32>=1.0;platform_system=='Windows'", |
367 ], |
334 ], |
368 data_files=getDataFiles(), |
|
369 packages=find_packages(), |
335 packages=find_packages(), |
370 zip_safe=False, |
336 zip_safe=False, |
371 package_data={ |
337 package_data={ |
372 "": getPackageData( |
338 "": getPackageData( |
373 "eric7", |
339 "eric7", |