installation: setup.py update:
- twisted plugin installation
- author is now « association Salut à Toi »
- author_email is now association's main contact address
- changed url from http://www.salut-a-toi.org to http://salut-a-toi.org
This commit is contained in:
parent
75fe2d0638
commit
fd88f94e8b
1 changed files with 28 additions and 10 deletions
38
setup.py
38
setup.py
|
|
@ -29,6 +29,27 @@ import subprocess
|
||||||
from stat import ST_MODE
|
from stat import ST_MODE
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
# seen here: http://stackoverflow.com/questions/7275295
|
||||||
|
try:
|
||||||
|
from setuptools.command import egg_info
|
||||||
|
egg_info.write_toplevel_names
|
||||||
|
except (ImportError, AttributeError):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
def _top_level_package(name):
|
||||||
|
return name.split('.', 1)[0]
|
||||||
|
|
||||||
|
def _hacked_write_toplevel_names(cmd, basename, filename):
|
||||||
|
pkgs = dict.fromkeys(
|
||||||
|
[_top_level_package(k)
|
||||||
|
for k in cmd.distribution.iter_distribution_names()
|
||||||
|
if _top_level_package(k) != "twisted"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cmd.write_file("top-level names", filename, '\n'.join(pkgs) + '\n')
|
||||||
|
|
||||||
|
egg_info.write_toplevel_names = _hacked_write_toplevel_names
|
||||||
|
|
||||||
|
|
||||||
NAME = 'sat'
|
NAME = 'sat'
|
||||||
LAUNCH_DAEMON_COMMAND = 'sat'
|
LAUNCH_DAEMON_COMMAND = 'sat'
|
||||||
|
|
@ -62,12 +83,9 @@ class CustomInstall(install):
|
||||||
"""Change options for twistd in the shell script
|
"""Change options for twistd in the shell script
|
||||||
Mainly change the paths"""
|
Mainly change the paths"""
|
||||||
sh_buffer = ""
|
sh_buffer = ""
|
||||||
run_dir = os.path.dirname(self.sh_script_path)
|
|
||||||
with open(self.sh_script_path, 'r') as sh_file:
|
with open(self.sh_script_path, 'r') as sh_file:
|
||||||
for ori_line in sh_file:
|
for ori_line in sh_file:
|
||||||
if ori_line.startswith('TAP_PATH='):
|
if ori_line.startswith('PYTHON='):
|
||||||
dest_line = 'TAP_PATH="%s/"\n' % run_dir
|
|
||||||
elif ori_line.startswith('PYTHON='):
|
|
||||||
dest_line = 'PYTHON="%s"\n' % sys.executable
|
dest_line = 'PYTHON="%s"\n' % sys.executable
|
||||||
else:
|
else:
|
||||||
dest_line = ori_line
|
dest_line = ori_line
|
||||||
|
|
@ -224,9 +242,9 @@ setup(name=NAME,
|
||||||
version='0.4.1',
|
version='0.4.1',
|
||||||
description=u'Salut à Toi multi-frontend XMPP client',
|
description=u'Salut à Toi multi-frontend XMPP client',
|
||||||
long_description=u'Salut à Toi (SàT) is a XMPP client based on a daemon/frontend architecture. Its multi-frontends (desktop, web, console interface, CLI, etc) and multi-purposes (instant messaging, microblogging, games, file sharing, etc).',
|
long_description=u'Salut à Toi (SàT) is a XMPP client based on a daemon/frontend architecture. Its multi-frontends (desktop, web, console interface, CLI, etc) and multi-purposes (instant messaging, microblogging, games, file sharing, etc).',
|
||||||
author='Goffi (Jérôme Poisson)',
|
author='Association « Salut à Toi »',
|
||||||
author_email='goffi@goffi.org',
|
author_email='contact@goffi.org',
|
||||||
url='http://www.salut-a-toi.org',
|
url='http://salut-a-toi.org',
|
||||||
classifiers=['Development Status :: 3 - Alpha',
|
classifiers=['Development Status :: 3 - Alpha',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Environment :: X11 Applications :: GTK',
|
'Environment :: X11 Applications :: GTK',
|
||||||
|
|
@ -234,11 +252,11 @@ setup(name=NAME,
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
|
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
|
||||||
'Operating System :: POSIX :: Linux',
|
'Operating System :: POSIX :: Linux',
|
||||||
'Topic :: Communications :: Chat'],
|
'Topic :: Communications :: Chat'],
|
||||||
package_dir={'sat': 'src', 'sat_frontends': 'frontends/src'},
|
package_dir={'sat': 'src', 'sat_frontends': 'frontends/src', 'twisted.plugins': 'src/twisted/plugins'},
|
||||||
packages=['sat', 'sat.tools', 'sat.bridge', 'sat.plugins', 'sat.test', 'sat.core', 'sat.memory',
|
packages=['sat', 'sat.tools', 'sat.bridge', 'sat.plugins', 'sat.test', 'sat.core', 'sat.memory',
|
||||||
'sat_frontends', 'sat_frontends.bridge', 'sat_frontends.quick_frontend', 'sat_frontends.jp',
|
'sat_frontends', 'sat_frontends.bridge', 'sat_frontends.quick_frontend', 'sat_frontends.jp',
|
||||||
'sat_frontends.primitivus', 'sat_frontends.wix', 'sat_frontends.tools', 'sat.stdui'],
|
'sat_frontends.primitivus', 'sat_frontends.wix', 'sat_frontends.tools', 'sat.stdui', 'twisted.plugins'],
|
||||||
package_data={'sat': ['sat.tac', 'sat.sh'],
|
package_data={'sat': ['sat.sh'],
|
||||||
'sat_frontends': ['wix/COPYING']},
|
'sat_frontends': ['wix/COPYING']},
|
||||||
data_files=[(os.path.join(sys.prefix, 'share/locale/fr/LC_MESSAGES'), ['i18n/fr/LC_MESSAGES/sat.mo']),
|
data_files=[(os.path.join(sys.prefix, 'share/locale/fr/LC_MESSAGES'), ['i18n/fr/LC_MESSAGES/sat.mo']),
|
||||||
('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
|
('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue