remove installation of modules
This commit is contained in:
parent
b5f43bf1f5
commit
572333c963
1 changed files with 1 additions and 52 deletions
53
setup.py
53
setup.py
|
|
@ -168,55 +168,11 @@ def install_weboob():
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
)
|
)
|
||||||
|
|
||||||
def prepare_install_modules(func):
|
|
||||||
def inner(*args, **kwargs):
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
|
||||||
try:
|
|
||||||
open(os.path.join(here, 'modules', '__init__.py'), 'w').close()
|
|
||||||
os.rename(os.path.join(here, 'MANIFEST.in'), os.path.join(here, 'MANIFEST.in.weboob'))
|
|
||||||
os.rename(os.path.join(here, 'MANIFEST.in.modules'), os.path.join(here, 'MANIFEST.in'))
|
|
||||||
|
|
||||||
return func(*args, **kwargs)
|
|
||||||
finally:
|
|
||||||
os.unlink(os.path.join(here, 'modules', '__init__.py'))
|
|
||||||
os.rename(os.path.join(here, 'MANIFEST.in'), os.path.join(here, 'MANIFEST.in.modules'))
|
|
||||||
os.rename(os.path.join(here, 'MANIFEST.in.weboob'), os.path.join(here, 'MANIFEST.in'))
|
|
||||||
return inner
|
|
||||||
|
|
||||||
@prepare_install_modules
|
|
||||||
def install_modules():
|
|
||||||
setup(
|
|
||||||
name='weboob-modules',
|
|
||||||
version='0.h',
|
|
||||||
description='Weboob modules',
|
|
||||||
long_description=open('README').read(),
|
|
||||||
author='Romain Bignon',
|
|
||||||
author_email='weboob@weboob.org',
|
|
||||||
maintainer='Romain Bignon',
|
|
||||||
maintainer_email='romain@weboob.org',
|
|
||||||
url='http://weboob.org/modules',
|
|
||||||
license='GNU AGPL 3',
|
|
||||||
classifiers=[
|
|
||||||
'Environment :: Console',
|
|
||||||
'Environment :: X11 Applications :: Qt',
|
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
|
||||||
'Programming Language :: Python :: 2.6',
|
|
||||||
'Programming Language :: Python :: 2.7',
|
|
||||||
'Programming Language :: Python',
|
|
||||||
'Topic :: Communications :: Email',
|
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
|
||||||
],
|
|
||||||
package_dir={'weboob_modules': 'modules'},
|
|
||||||
packages=['weboob_modules'],
|
|
||||||
include_package_data=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
class Options(object):
|
class Options(object):
|
||||||
hildon = False
|
hildon = False
|
||||||
qt = False
|
qt = False
|
||||||
xdg = True
|
xdg = True
|
||||||
deps = True
|
deps = True
|
||||||
modules = False
|
|
||||||
|
|
||||||
options = Options()
|
options = Options()
|
||||||
|
|
||||||
|
|
@ -257,13 +213,6 @@ if '--nodeps' in args:
|
||||||
options.deps = False
|
options.deps = False
|
||||||
args.remove('--nodeps')
|
args.remove('--nodeps')
|
||||||
|
|
||||||
if '--modules' in args:
|
|
||||||
options.modules = True
|
|
||||||
args.remove('--modules')
|
|
||||||
|
|
||||||
sys.argv = args
|
sys.argv = args
|
||||||
|
|
||||||
if options.modules:
|
install_weboob()
|
||||||
install_modules()
|
|
||||||
else:
|
|
||||||
install_weboob()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue