Fix coding style in setup.py.
This commit is contained in:
parent
6216bf7642
commit
310e2cc347
2 changed files with 87 additions and 73 deletions
|
|
@ -30,13 +30,14 @@ try:
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def _python_cmd(*args):
|
def _python_cmd(*args):
|
||||||
args = (sys.executable,) + args
|
args = (sys.executable, ) + args
|
||||||
return subprocess.call(args) == 0
|
return subprocess.call(args) == 0
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
||||||
# will be used for python 2.3
|
# will be used for python 2.3
|
||||||
def _python_cmd(*args):
|
def _python_cmd(*args):
|
||||||
args = (sys.executable,) + args
|
args = (sys.executable, ) + args
|
||||||
# quoting arguments if windows
|
# quoting arguments if windows
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
def quote(arg):
|
def quote(arg):
|
||||||
|
|
@ -144,17 +145,17 @@ def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return _do_download(version, download_base, to_dir, download_delay)
|
return _do_download(version, download_base, to_dir, download_delay)
|
||||||
try:
|
try:
|
||||||
pkg_resources.require("distribute>="+version)
|
pkg_resources.require("distribute>=" + version)
|
||||||
return
|
return
|
||||||
except pkg_resources.VersionConflict:
|
except pkg_resources.VersionConflict:
|
||||||
e = sys.exc_info()[1]
|
e = sys.exc_info()[1]
|
||||||
if was_imported:
|
if was_imported:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
"The required version of distribute (>=%s) is not available,\n"
|
"The required version of distribute (>=%s) is not available,\n"
|
||||||
"and can't be installed while this script is running. Please\n"
|
"and can't be installed while this script is running. Please\n"
|
||||||
"install a more recent version first, using\n"
|
"install a more recent version first, using\n"
|
||||||
"'easy_install -U distribute'."
|
"'easy_install -U distribute'."
|
||||||
"\n\n(Currently using %r)\n" % (version, e.args[0]))
|
"\n\n(Currently using %r)\n" % (version, e.args[0]))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
del pkg_resources, sys.modules['pkg_resources'] # reload ok
|
del pkg_resources, sys.modules['pkg_resources'] # reload ok
|
||||||
|
|
@ -167,6 +168,7 @@ def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
|
||||||
if not no_fake:
|
if not no_fake:
|
||||||
_create_fake_setuptools_pkg_info(to_dir)
|
_create_fake_setuptools_pkg_info(to_dir)
|
||||||
|
|
||||||
|
|
||||||
def download_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
|
def download_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
|
||||||
to_dir=os.curdir, delay=15):
|
to_dir=os.curdir, delay=15):
|
||||||
"""Download distribute from a specified location and return its filename
|
"""Download distribute from a specified location and return its filename
|
||||||
|
|
@ -203,6 +205,7 @@ def download_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
|
||||||
dst.close()
|
dst.close()
|
||||||
return os.path.realpath(saveto)
|
return os.path.realpath(saveto)
|
||||||
|
|
||||||
|
|
||||||
def _no_sandbox(function):
|
def _no_sandbox(function):
|
||||||
def __no_sandbox(*args, **kw):
|
def __no_sandbox(*args, **kw):
|
||||||
try:
|
try:
|
||||||
|
|
@ -227,6 +230,7 @@ def _no_sandbox(function):
|
||||||
|
|
||||||
return __no_sandbox
|
return __no_sandbox
|
||||||
|
|
||||||
|
|
||||||
def _patch_file(path, content):
|
def _patch_file(path, content):
|
||||||
"""Will backup the file then patch it"""
|
"""Will backup the file then patch it"""
|
||||||
existing_content = open(path).read()
|
existing_content = open(path).read()
|
||||||
|
|
@ -245,15 +249,18 @@ def _patch_file(path, content):
|
||||||
|
|
||||||
_patch_file = _no_sandbox(_patch_file)
|
_patch_file = _no_sandbox(_patch_file)
|
||||||
|
|
||||||
|
|
||||||
def _same_content(path, content):
|
def _same_content(path, content):
|
||||||
return open(path).read() == content
|
return open(path).read() == content
|
||||||
|
|
||||||
|
|
||||||
def _rename_path(path):
|
def _rename_path(path):
|
||||||
new_name = path + '.OLD.%s' % time.time()
|
new_name = path + '.OLD.%s' % time.time()
|
||||||
log.warn('Renaming %s into %s', path, new_name)
|
log.warn('Renaming %s into %s', path, new_name)
|
||||||
os.rename(path, new_name)
|
os.rename(path, new_name)
|
||||||
return new_name
|
return new_name
|
||||||
|
|
||||||
|
|
||||||
def _remove_flat_installation(placeholder):
|
def _remove_flat_installation(placeholder):
|
||||||
if not os.path.isdir(placeholder):
|
if not os.path.isdir(placeholder):
|
||||||
log.warn('Unkown installation at %s', placeholder)
|
log.warn('Unkown installation at %s', placeholder)
|
||||||
|
|
@ -289,18 +296,20 @@ def _remove_flat_installation(placeholder):
|
||||||
|
|
||||||
_remove_flat_installation = _no_sandbox(_remove_flat_installation)
|
_remove_flat_installation = _no_sandbox(_remove_flat_installation)
|
||||||
|
|
||||||
|
|
||||||
def _after_install(dist):
|
def _after_install(dist):
|
||||||
log.warn('After install bootstrap.')
|
log.warn('After install bootstrap.')
|
||||||
placeholder = dist.get_command_obj('install').install_purelib
|
placeholder = dist.get_command_obj('install').install_purelib
|
||||||
_create_fake_setuptools_pkg_info(placeholder)
|
_create_fake_setuptools_pkg_info(placeholder)
|
||||||
|
|
||||||
|
|
||||||
def _create_fake_setuptools_pkg_info(placeholder):
|
def _create_fake_setuptools_pkg_info(placeholder):
|
||||||
if not placeholder or not os.path.exists(placeholder):
|
if not placeholder or not os.path.exists(placeholder):
|
||||||
log.warn('Could not find the install location')
|
log.warn('Could not find the install location')
|
||||||
return
|
return
|
||||||
pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1])
|
pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1])
|
||||||
setuptools_file = 'setuptools-%s-py%s.egg-info' % \
|
setuptools_file = 'setuptools-%s-py%s.egg-info' % \
|
||||||
(SETUPTOOLS_FAKED_VERSION, pyver)
|
(SETUPTOOLS_FAKED_VERSION, pyver)
|
||||||
pkg_info = os.path.join(placeholder, setuptools_file)
|
pkg_info = os.path.join(placeholder, setuptools_file)
|
||||||
if os.path.exists(pkg_info):
|
if os.path.exists(pkg_info):
|
||||||
log.warn('%s already exists', pkg_info)
|
log.warn('%s already exists', pkg_info)
|
||||||
|
|
@ -323,6 +332,7 @@ def _create_fake_setuptools_pkg_info(placeholder):
|
||||||
|
|
||||||
_create_fake_setuptools_pkg_info = _no_sandbox(_create_fake_setuptools_pkg_info)
|
_create_fake_setuptools_pkg_info = _no_sandbox(_create_fake_setuptools_pkg_info)
|
||||||
|
|
||||||
|
|
||||||
def _patch_egg_dir(path):
|
def _patch_egg_dir(path):
|
||||||
# let's check if it's already patched
|
# let's check if it's already patched
|
||||||
pkg_info = os.path.join(path, 'EGG-INFO', 'PKG-INFO')
|
pkg_info = os.path.join(path, 'EGG-INFO', 'PKG-INFO')
|
||||||
|
|
@ -343,6 +353,7 @@ def _patch_egg_dir(path):
|
||||||
|
|
||||||
_patch_egg_dir = _no_sandbox(_patch_egg_dir)
|
_patch_egg_dir = _no_sandbox(_patch_egg_dir)
|
||||||
|
|
||||||
|
|
||||||
def _before_install():
|
def _before_install():
|
||||||
log.warn('Before install bootstrap.')
|
log.warn('Before install bootstrap.')
|
||||||
_fake_setuptools()
|
_fake_setuptools()
|
||||||
|
|
@ -351,7 +362,7 @@ def _before_install():
|
||||||
def _under_prefix(location):
|
def _under_prefix(location):
|
||||||
if 'install' not in sys.argv:
|
if 'install' not in sys.argv:
|
||||||
return True
|
return True
|
||||||
args = sys.argv[sys.argv.index('install')+1:]
|
args = sys.argv[sys.argv.index('install') + 1:]
|
||||||
for index, arg in enumerate(args):
|
for index, arg in enumerate(args):
|
||||||
for option in ('--root', '--prefix'):
|
for option in ('--root', '--prefix'):
|
||||||
if arg.startswith('%s=' % option):
|
if arg.startswith('%s=' % option):
|
||||||
|
|
@ -359,7 +370,7 @@ def _under_prefix(location):
|
||||||
return location.startswith(top_dir)
|
return location.startswith(top_dir)
|
||||||
elif arg == option:
|
elif arg == option:
|
||||||
if len(args) > index:
|
if len(args) > index:
|
||||||
top_dir = args[index+1]
|
top_dir = args[index + 1]
|
||||||
return location.startswith(top_dir)
|
return location.startswith(top_dir)
|
||||||
if arg == '--user' and USER_SITE is not None:
|
if arg == '--user' and USER_SITE is not None:
|
||||||
return location.startswith(USER_SITE)
|
return location.startswith(USER_SITE)
|
||||||
|
|
@ -406,7 +417,7 @@ def _fake_setuptools():
|
||||||
log.warn('Egg installation')
|
log.warn('Egg installation')
|
||||||
pkg_info = os.path.join(setuptools_location, 'EGG-INFO', 'PKG-INFO')
|
pkg_info = os.path.join(setuptools_location, 'EGG-INFO', 'PKG-INFO')
|
||||||
if (os.path.exists(pkg_info) and
|
if (os.path.exists(pkg_info) and
|
||||||
_same_content(pkg_info, SETUPTOOLS_PKG_INFO)):
|
_same_content(pkg_info, SETUPTOOLS_PKG_INFO)):
|
||||||
log.warn('Already patched.')
|
log.warn('Already patched.')
|
||||||
return
|
return
|
||||||
log.warn('Patching...')
|
log.warn('Patching...')
|
||||||
|
|
@ -448,7 +459,7 @@ def _extractall(self, path=".", members=None):
|
||||||
# Extract directories with a safe mode.
|
# Extract directories with a safe mode.
|
||||||
directories.append(tarinfo)
|
directories.append(tarinfo)
|
||||||
tarinfo = copy.copy(tarinfo)
|
tarinfo = copy.copy(tarinfo)
|
||||||
tarinfo.mode = 448 # decimal for oct 0700
|
tarinfo.mode = 448 # decimal for oct 0700
|
||||||
self.extract(tarinfo, path)
|
self.extract(tarinfo, path)
|
||||||
|
|
||||||
# Reverse sort directories.
|
# Reverse sort directories.
|
||||||
|
|
|
||||||
109
setup.py
109
setup.py
|
|
@ -24,36 +24,41 @@ use_setuptools()
|
||||||
from setuptools.command.install import install
|
from setuptools.command.install import install
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from distutils.file_util import copy_file
|
from distutils.file_util import copy_file
|
||||||
import os,sys,subprocess
|
import os
|
||||||
|
import sys
|
||||||
|
import subprocess
|
||||||
from stat import ST_MODE
|
from stat import ST_MODE
|
||||||
|
|
||||||
NAME = 'sat'
|
NAME = 'sat'
|
||||||
LAUNCH_DAEMON_COMMAND = 'sat'
|
LAUNCH_DAEMON_COMMAND = 'sat'
|
||||||
|
|
||||||
|
|
||||||
class MercurialException(Exception):
|
class MercurialException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def module_installed(module_name):
|
def module_installed(module_name):
|
||||||
"""Try to import module_name, and return False if it failed
|
"""Try to import module_name, and return False if it failed
|
||||||
@param module_name: name of the module to test
|
@param module_name: name of the module to test
|
||||||
@return: True if successful"""
|
@return: True if successful"""
|
||||||
try:
|
try:
|
||||||
__import__(module_name)
|
__import__(module_name)
|
||||||
except:
|
except ImportError:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
class custom_install(install):
|
|
||||||
|
class CustomInstall(install):
|
||||||
|
|
||||||
def custom_auto_options(self):
|
def custom_auto_options(self):
|
||||||
"""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)
|
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('DAEMON='):
|
if ori_line.startswith('DAEMON='):
|
||||||
dest_line = 'DAEMON=""\n' #we want to launch sat as a daemon
|
dest_line = 'DAEMON=""\n' # we want to launch sat as a daemon
|
||||||
elif ori_line.startswith('TAP_PATH='):
|
elif ori_line.startswith('TAP_PATH='):
|
||||||
dest_line = 'TAP_PATH="%s/"\n' % run_dir
|
dest_line = 'TAP_PATH="%s/"\n' % run_dir
|
||||||
elif ori_line.startswith('PYTHON='):
|
elif ori_line.startswith('PYTHON='):
|
||||||
|
|
@ -62,27 +67,26 @@ class custom_install(install):
|
||||||
dest_line = ori_line
|
dest_line = ori_line
|
||||||
sh_buffer += dest_line
|
sh_buffer += dest_line
|
||||||
|
|
||||||
with open(self.sh_script_path,'w') as sh_file:
|
with open(self.sh_script_path, 'w') as sh_file:
|
||||||
sh_file.write(sh_buffer)
|
sh_file.write(sh_buffer)
|
||||||
|
|
||||||
|
|
||||||
def custom_create_links(self):
|
def custom_create_links(self):
|
||||||
"""Create symbolic links to executables"""
|
"""Create symbolic links to executables"""
|
||||||
#the script which launch the daemon
|
# the script which launch the daemon
|
||||||
links = [(self.sh_script_path,LAUNCH_DAEMON_COMMAND),]
|
links = [(self.sh_script_path, LAUNCH_DAEMON_COMMAND)]
|
||||||
for source,dest in links:
|
for source, dest in links:
|
||||||
dest_name, copied = copy_file(source, os.path.join(self.install_scripts, dest), link='sym')
|
dest_name, copied = copy_file(source, os.path.join(self.install_scripts, dest), link='sym')
|
||||||
assert (copied)
|
assert (copied)
|
||||||
#we change the perm in the same way as in the original install_scripts
|
# we change the perm in the same way as in the original install_scripts
|
||||||
mode = ((os.stat(dest_name)[ST_MODE]) | 0555) & 07777
|
mode = ((os.stat(dest_name)[ST_MODE]) | 0555) & 07777
|
||||||
os.chmod(dest_name, mode)
|
os.chmod(dest_name, mode)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
install.run(self)
|
install.run(self)
|
||||||
sys.stdout.write ('running post installation stuff\n')
|
sys.stdout.write('running post installation stuff\n')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
self.sh_script_path = os.path.join(self.install_lib,'sat','sat.sh')
|
self.sh_script_path = os.path.join(self.install_lib, 'sat', 'sat.sh')
|
||||||
self.primitivus_path = os.path.join(self.install_lib,'sat_frontends','primitivus')
|
self.primitivus_path = os.path.join(self.install_lib, 'sat_frontends', 'primitivus')
|
||||||
self.custom_auto_options()
|
self.custom_auto_options()
|
||||||
self.custom_create_links()
|
self.custom_create_links()
|
||||||
|
|
||||||
|
|
@ -92,53 +96,53 @@ def preinstall_check():
|
||||||
This ugly stuff is necessary as distributions are not installed correctly with setuptools/distribute
|
This ugly stuff is necessary as distributions are not installed correctly with setuptools/distribute
|
||||||
Hope to remove this at some point"""
|
Hope to remove this at some point"""
|
||||||
|
|
||||||
#modules_tocheck=['twisted', 'twisted.words', 'twisted.web', 'wx', 'urwid']
|
#modules_tocheck = ['twisted', 'twisted.words', 'twisted.web', 'wx', 'urwid']
|
||||||
modules_tocheck=['wx','gobject'] #XXX: wx is the only one to be really difficult to install, python-gobject is not up-to-date in PyPi
|
modules_tocheck = ['wx', 'gobject'] # XXX: wx is the only one to be really difficult to install, python-gobject is not up-to-date in PyPi
|
||||||
|
|
||||||
package = {'twisted':'python-twisted-core',
|
package = {'twisted': 'python-twisted-core',
|
||||||
'twisted.words':'python-twisted-words',
|
'twisted.words': 'python-twisted-words',
|
||||||
'twisted.web':'python-twisted-web',
|
'twisted.web': 'python-twisted-web',
|
||||||
'wx':'python-wxgtk2.8',
|
'wx': 'python-wxgtk2.8',
|
||||||
'urwid':'python-urwid',
|
'urwid': 'python-urwid',
|
||||||
'gobject':'python-gobject',
|
'gobject': 'python-gobject',
|
||||||
'mercurial':'mercurial'} #this dict map dependencies to packages names for debian distributions
|
'mercurial': 'mercurial'} # this dict map dependencies to packages names for debian distributions
|
||||||
|
|
||||||
sys.stdout.write ("Running pre-installation dependencies check\n")
|
sys.stdout.write("Running pre-installation dependencies check\n")
|
||||||
|
|
||||||
#which modules are not installed ?
|
# which modules are not installed ?
|
||||||
modules_toinstall = filter(lambda mod:not module_installed(mod),modules_tocheck)
|
modules_toinstall = [mod for mod in modules_tocheck if not module_installed(mod)]
|
||||||
"""#is mercurial available ?
|
"""# is mercurial available ?
|
||||||
hg_installed = subprocess.call('which hg', stdout=open('/dev/null', 'w'), shell=True) == 0
|
hg_installed = subprocess.call('which hg', stdout=open('/dev/null', 'w'), shell=True) == 0
|
||||||
if not hg_installed:
|
if not hg_installed:
|
||||||
modules_toinstall.append('mercurial')""" #hg can be installed from pypi
|
modules_toinstall.append('mercurial')""" # hg can be installed from pypi
|
||||||
|
|
||||||
if modules_toinstall:
|
if modules_toinstall:
|
||||||
#are we on a distribution using apt ?
|
# are we on a distribution using apt ?
|
||||||
apt_path = subprocess.Popen('which apt-get', stdout=subprocess.PIPE, shell=True).communicate()[0][:-1]
|
apt_path = subprocess.Popen('which apt-get', stdout=subprocess.PIPE, shell=True).communicate()[0][:-1]
|
||||||
not_installed=set()
|
not_installed = set()
|
||||||
if apt_path:
|
if apt_path:
|
||||||
#we have apt, we'll try to use it
|
# we have apt, we'll try to use it
|
||||||
for module_name in modules_toinstall:
|
for module_name in modules_toinstall:
|
||||||
package_name = package[module_name]
|
package_name = package[module_name]
|
||||||
sys.stdout.write ("Installing %s\n" % package_name)
|
sys.stdout.write("Installing %s\n" % package_name)
|
||||||
success = subprocess.call('%s -qy install %s' % (apt_path,package_name), shell=True) == 0
|
success = subprocess.call('%s -qy install %s' % (apt_path, package_name), shell=True) == 0
|
||||||
if not success:
|
if not success:
|
||||||
not_installed.add(module_name)
|
not_installed.add(module_name)
|
||||||
else:
|
else:
|
||||||
not_installed=set(modules_toinstall)
|
not_installed = set(modules_toinstall)
|
||||||
|
|
||||||
if not_installed:
|
if not_installed:
|
||||||
#some packages can't be automatically installed, we print their name for manual installation
|
# some packages can't be automatically installed, we print their name for manual installation
|
||||||
sys.stdout.write ("You should install the following dependencies with your distribution recommanded tool before installing %s:\n" % NAME)
|
sys.stdout.write("You should install the following dependencies with your distribution recommanded tool before installing %s:\n" % NAME)
|
||||||
for module_name in not_installed:
|
for module_name in not_installed:
|
||||||
sys.stdout.write ("- %s (Debian name: %s)\n" % (module_name,package[module_name]))
|
sys.stdout.write("- %s (Debian name: %s)\n" % (module_name, package[module_name]))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
|
||||||
if sys.argv[1].lower() in ['egg_info','install']:
|
if sys.argv[1].lower() in ['egg_info', 'install']:
|
||||||
#we only check dependencies if egg_info or install is used
|
# we only check dependencies if egg_info or install is used
|
||||||
install_opt = os.environ.get("SAT_INSTALL","")
|
install_opt = os.environ.get("SAT_INSTALL", "")
|
||||||
if not "nopreinstall" in install_opt: #user can force preinstall skipping
|
if not "nopreinstall" in install_opt: # user can force preinstall skipping
|
||||||
preinstall_check()
|
preinstall_check()
|
||||||
|
|
||||||
setup(name=NAME,
|
setup(name=NAME,
|
||||||
|
|
@ -155,21 +159,20 @@ 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'},
|
||||||
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', 'sat_frontends.bridge', 'sat_frontends.quick_frontend',
|
||||||
'sat_frontends.primitivus', 'sat_frontends.wix'],
|
'sat_frontends.primitivus', 'sat_frontends.wix'],
|
||||||
package_data = {'sat': ['sat.tac','sat.sh'],
|
package_data={'sat': ['sat.tac', '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']),
|
||||||
(os.path.join(sys.prefix,'share/locale/fr/LC_MESSAGES'), ['frontends/i18n/fr/LC_MESSAGES/sat_frontend.mo']),
|
(os.path.join(sys.prefix, 'share/locale/fr/LC_MESSAGES'), ['frontends/i18n/fr/LC_MESSAGES/sat_frontend.mo']),
|
||||||
(os.path.join(sys.prefix,'share/locale/fr/LC_MESSAGES'), ['frontends/src/jp/i18n/fr/LC_MESSAGES/jp.mo']),
|
(os.path.join(sys.prefix, 'share/locale/fr/LC_MESSAGES'), ['frontends/src/jp/i18n/fr/LC_MESSAGES/jp.mo']),
|
||||||
('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
|
('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
|
||||||
],
|
],
|
||||||
scripts=['frontends/src/jp/jp', 'frontends/src/primitivus/primitivus', 'frontends/src/wix/wix'],
|
scripts=['frontends/src/jp/jp', 'frontends/src/primitivus/primitivus', 'frontends/src/wix/wix'],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
dependency_links = ['http://www.blarg.net/%7Esteveha/pyfeed-0.7.4.tar.gz','http://www.blarg.net/%7Esteveha/xe-0.7.4.tar.gz'],
|
dependency_links=['http://www.blarg.net/%7Esteveha/pyfeed-0.7.4.tar.gz', 'http://www.blarg.net/%7Esteveha/xe-0.7.4.tar.gz'],
|
||||||
install_requires=['twisted', 'wokkel', 'progressbar', 'urwid', 'urwid-satext','pyfeed','xe', 'mutagen'],
|
install_requires=['twisted', 'wokkel', 'progressbar', 'urwid', 'urwid-satext', 'pyfeed', 'xe', 'mutagen'],
|
||||||
cmdclass=dict(install=custom_install),
|
cmdclass={'install': CustomInstall},
|
||||||
) #XXX: wxpython doesn't work, it's managed with preinstall_check
|
) # XXX: wxpython doesn't work, it's managed with preinstall_check
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue