Commit 40c6de43 authored by MinchinWeb's avatar MinchinWeb

Fix Wheel building

Evaluate conditional requirements at install time rather than compile time.
parent 69cd72ba
...@@ -21,11 +21,6 @@ def find_version(*file_paths): ...@@ -21,11 +21,6 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.") raise RuntimeError("Unable to find version string.")
conditional_dependencies = {
"colorama>=0.2.5": "win32" in sys.platform,
}
setup( setup(
name = "topydo", name = "topydo",
packages = find_packages(exclude=["test"]), packages = find_packages(exclude=["test"]),
...@@ -36,8 +31,9 @@ setup( ...@@ -36,8 +31,9 @@ setup(
url = "https://github.com/bram85/topydo", url = "https://github.com/bram85/topydo",
install_requires = [ install_requires = [
'six >= 1.9.0', 'six >= 1.9.0',
] + [p for p, cond in conditional_dependencies.items() if cond], ],
extras_require = { extras_require = {
':sys_platform=="win32"': ['colorama>=0.2.5'],
'ical': ['icalendar'], 'ical': ['icalendar'],
'prompt-toolkit': ['prompt-toolkit >= 0.53'], 'prompt-toolkit': ['prompt-toolkit >= 0.53'],
'edit-cmd-tests': ['mock'], 'edit-cmd-tests': ['mock'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment