linux install works again
This commit is contained in:
parent
9221429339
commit
b644608f87
1 changed files with 28 additions and 17 deletions
45
setup.py
45
setup.py
|
@ -4,8 +4,7 @@ import os, PyQt4
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from sys import platform as _platform
|
from sys import platform as _platform
|
||||||
|
|
||||||
VERSION = "0.1.1"
|
VERSION = "0.1.2"
|
||||||
APP = ["feedthemonkey"]
|
|
||||||
|
|
||||||
files = []
|
files = []
|
||||||
options = {}
|
options = {}
|
||||||
|
@ -16,8 +15,19 @@ is_win = os.name == "nt"
|
||||||
is_linux = not is_osx and not is_win
|
is_linux = not is_osx and not is_win
|
||||||
|
|
||||||
if is_linux:
|
if is_linux:
|
||||||
files += ('/usr/share/applications', ["feedthemonkey.desktop"])
|
setup(
|
||||||
files += ('/usr/share/pixmaps', ["feedthemonkey.xpm"])
|
name = "feedthemonkey",
|
||||||
|
version = VERSION,
|
||||||
|
author = "Jeena Paradies",
|
||||||
|
author_email = "spam@jeenaparadies.net",
|
||||||
|
url = "http://jabs.nu/feedthemonkey",
|
||||||
|
license = "BSD license",
|
||||||
|
scripts = ["feedthemonkey"],
|
||||||
|
data_files=[
|
||||||
|
('/usr/share/applications', ["feedthemonkey.desktop"]),
|
||||||
|
('/usr/share/pixmaps', ["feedthemonkey.xpm"])
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
if is_osx:
|
if is_osx:
|
||||||
options = {
|
options = {
|
||||||
|
@ -42,22 +52,23 @@ if is_osx:
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_requires = ["py2app"]
|
setup_requires = ["py2app"]
|
||||||
|
APP = ["feedthemonkey"]
|
||||||
|
|
||||||
for dirname, dirnames, filenames in os.walk('.'):
|
for dirname, dirnames, filenames in os.walk('.'):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if filename == "Icon.icns":
|
if filename == "Icon.icns":
|
||||||
files += [(dirname, [os.path.join(dirname, filename)])]
|
files += [(dirname, [os.path.join(dirname, filename)])]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
app = APP,
|
app = APP,
|
||||||
name = "FeedTheMonkey",
|
name = "FeedTheMonkey",
|
||||||
options = options,
|
options = options,
|
||||||
version = VERSION,
|
version = VERSION,
|
||||||
author = "Jeena Paradies",
|
author = "Jeena Paradies",
|
||||||
author_email = "spam@jeenaparadies.net",
|
author_email = "spam@jeenaparadies.net",
|
||||||
url = "http://jabs.nu/feedthemonkey",
|
url = "http://jabs.nu/feedthemonkey",
|
||||||
license = "BSD license",
|
license = "BSD license",
|
||||||
scripts = ["feedthemonkey"],
|
scripts = ["feedthemonkey"],
|
||||||
data_files = files,
|
data_files = files,
|
||||||
setup_requires = setup_requires
|
setup_requires = setup_requires
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue