comparison setup.py @ 513:ecec2cc13b33

installation: setup.py update: - removed DAEMON option change when installing libervia - fixed docstring used for a comment - changed author/author_email for SàT association
author Goffi <goffi@goffi.org>
date Sun, 24 Aug 2014 18:43:45 +0200
parents b483f1c88b7c
children 95bdad7041d4
comparison
equal deleted inserted replaced
512:750db9ff8525 513:ecec2cc13b33
83 """Change options for twistd in the shell script 83 """Change options for twistd in the shell script
84 Mainly change the paths""" 84 Mainly change the paths"""
85 sh_buffer = "" 85 sh_buffer = ""
86 with open(self.sh_script_path, 'r') as sh_file: 86 with open(self.sh_script_path, 'r') as sh_file:
87 for ori_line in sh_file: 87 for ori_line in sh_file:
88 if ori_line.startswith('DAEMON='): 88 if ori_line.startswith('PLUGIN_OPTIONS='):
89 dest_line = 'DAEMON=""\n' # we want to launch libervia as a daemon 89 dest_line = 'PLUGIN_OPTIONS="-d %s"\n' % self.install_data_dir
90 elif ori_line.startswith('DATA_DIR='):
91 dest_line = 'DATA_DIR="%s"\n' % self.install_data_dir
92 elif ori_line.startswith('PYTHON='): 90 elif ori_line.startswith('PYTHON='):
93 dest_line = 'PYTHON="%s"\n' % sys.executable 91 dest_line = 'PYTHON="%s"\n' % sys.executable
94 else: 92 else:
95 dest_line = ori_line 93 dest_line = ori_line
96 sh_buffer += dest_line 94 sh_buffer += dest_line
118 (self.install_lib, self.pyjamas_output_dir), shell=True) 116 (self.install_lib, self.pyjamas_output_dir), shell=True)
119 os.chdir(cwd) 117 os.chdir(cwd)
120 return result 118 return result
121 119
122 def copy_data_files(self): 120 def copy_data_files(self):
123 """To copy the JS files couldn't be done with the data_files parameter 121 # XXX: To copy the JS files couldn't be done with the data_files parameter
124 of setuptools.setup because all the files to be copied must exist before 122 # of setuptools.setup because all the files to be copied must exist before
125 the call. Also, we need the value of self.install_lib to build the JS 123 # the call. Also, we need the value of self.install_lib to build the JS
126 files (it's not easily predictable as it may vary from one system to 124 # files (it's not easily predictable as it may vary from one system to
127 another), so we can't call pyjsbuild before setuptools.setup. 125 # another), so we can't call pyjsbuild before setuptools.setup.
128 """ 126
129 html = os.path.join(self.install_data_dir, C.HTML_DIR) 127 html = os.path.join(self.install_data_dir, C.HTML_DIR)
130 if os.path.isdir(html): 128 if os.path.isdir(html):
131 shutil.rmtree(html, ignore_errors=True) 129 shutil.rmtree(html, ignore_errors=True)
132 shutil.copytree(self.pyjamas_output_dir, html) 130 shutil.copytree(self.pyjamas_output_dir, html)
133 131
268 266
269 setup(name=NAME, 267 setup(name=NAME,
270 version='0.4.0', 268 version='0.4.0',
271 description=u'Web frontend for Salut à Toi', 269 description=u'Web frontend for Salut à Toi',
272 long_description=u'Libervia is a web frontend for Salut à Toi (SàT), a multi-frontends and multi-purposes XMPP client.', 270 long_description=u'Libervia is a web frontend for Salut à Toi (SàT), a multi-frontends and multi-purposes XMPP client.',
273 author='Goffi (Jérôme Poisson)', 271 author='Association « Salut à Toi »',
274 author_email='goffi@goffi.org', 272 author_email='contact@goffi.org',
275 url='http://www.salut-a-toi.org', 273 url='http://www.salut-a-toi.org',
276 classifiers=['Development Status :: 3 - Alpha', 274 classifiers=['Development Status :: 3 - Alpha',
277 'Environment :: Web Environment', 275 'Environment :: Web Environment',
278 'Framework :: Twisted', 276 'Framework :: Twisted',
279 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', 277 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',