本文整理汇总了Python中tethys_apps.app_installation.custom_install_command函数的典型用法代码示例。如果您正苦于以下问题:Python custom_install_command函数的具体用法?Python custom_install_command怎么用?Python custom_install_command使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了custom_install_command函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_custom_install_command
def test_custom_install_command(self):
app_package = 'tethys_apps'
app_package_dir = '/test_app/'
dependencies = 'foo'
ret = tethys_app_installation.custom_install_command(app_package, app_package_dir, dependencies)
self.assertEquals('tethys_apps', ret.app_package)
self.assertEquals('/test_app/', ret.app_package_dir)
self.assertEquals('foo', ret.dependencies)
self.assertEquals('tethys_apps.app_installation', ret.__module__)
示例2: setup
### Apps Definition ###
app_package = 'hydroshare_shapefile_viewer'
release_package = 'tethysapp-' + app_package
app_class = 'hydroshare_shapefile_viewer.app:HydroshareShapefileViewer'
app_package_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tethysapp', app_package)
### Python Dependencies ###
dependencies = []
setup(
name=release_package,
version='1.0.0',
description='View shapefiles from hydroshare.org',
long_description='',
keywords='',
author='Sarva Pulla',
author_email='[email protected]',
url='www.hydroshare.org',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=['tethysapp', 'tethysapp.' + app_package],
include_package_data=True,
zip_safe=False,
install_requires=dependencies,
cmdclass={
'install': custom_install_command(app_package, app_package_dir, dependencies),
'develop': custom_develop_command(app_package, app_package_dir, dependencies)
}
)