| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4ef487 commit 9001112
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,10 +88,23 @@ def find_packages(path): | |||
| 88 | 88 | } | |
| 89 | 89 | ||
| 90 | 90 | if haz_setuptools == True: | |
| 91 | - setup_args['install_requires'] = [ | ||
| 92 | - 'ConfigObj >= 4.3', | ||
| 93 | - 'Twisted >= 2.5.0', | ||
| 94 | - ] | ||
| 91 | + setup_args['install_requires'] = [] | ||
| 92 | + try: | ||
| 93 | + from configobj import ConfigObj | ||
| 94 | + except ImportError: | ||
| 95 | + setup_args['install_requires'].append('ConfigObj >= 4.3') | ||
| 96 | + try: | ||
| 97 | + from twisted import __version__ as twisted_version | ||
| 98 | + twisted_version = map(int, twisted_version.split('.')) | ||
| 99 | + if twisted_version < [2,5,0]: | ||
| 100 | + raise ImportError | ||
| 101 | + from twisted.web import __version__ as twisted_web_version | ||
| 102 | + twisted_web_version = map(int, twisted_web_version.split('.')) | ||
| 103 | + if twisted_web_version < [2,5,0]: | ||
| 104 | + raise ImportError | ||
| 105 | + except ImportError: | ||
| 106 | + setup_args['install_requires'].append('Twisted >= 2.5.0') | ||
| 107 | + | ||
| 95 | 108 | setup_args['entry_points'] = """ | |
| 96 | 109 | [coherence.plugins.backend.media_server] | |
| 97 | 110 | FSStore = coherence.backends.fs_storage:FSStore | |
@@ -117,7 +130,7 @@ def find_packages(path): | |||
| 117 | 130 | PicasaStore = coherence.backends.picasa_storage:PicasaStore | |
| 118 | 131 | TestStore = coherence.backends.test_storage:TestStore | |
| 119 | 132 | PlaylistStore = coherence.backends.playlist_storage:PlaylistStore | |
| 120 | - | ||
| 133 | + | ||
| 121 | 134 | [coherence.plugins.backend.media_renderer] | |
| 122 | 135 | ElisaPlayer = coherence.backends.elisa_renderer:ElisaPlayer | |
| 123 | 136 | GStreamerPlayer = coherence.backends.gstreamer_renderer:GStreamerPlayer | |
| Back | FazBrowse Home | New Git URL |
0 commit comments