mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
wheel deps should be checked at install time, not build time
This commit is contained in:
parent
cc5ee87385
commit
88e83ddae5
2 changed files with 6 additions and 13 deletions
|
@ -3,12 +3,6 @@ import setuptools, sys
|
|||
with open("../meta/version") as fh:
|
||||
version = fh.read().strip()
|
||||
|
||||
platform_reqs = []
|
||||
if sys.platform == "win32":
|
||||
platform_reqs.append("psutil")
|
||||
if sys.platform != "win32" and sys.platform != "darwin":
|
||||
platform_reqs.append("distro")
|
||||
|
||||
setuptools.setup(
|
||||
name="anki",
|
||||
version=version,
|
||||
|
@ -26,5 +20,7 @@ setuptools.setup(
|
|||
'requests',
|
||||
'decorator',
|
||||
'protobuf',
|
||||
] + platform_reqs
|
||||
'psutil; sys_platform == "win32"',
|
||||
'distro; sys_platform != "darwin" and sys_platform != "win32"'
|
||||
]
|
||||
)
|
||||
|
|
|
@ -3,10 +3,6 @@ import setuptools, sys, os
|
|||
with open("../meta/version") as fh:
|
||||
version = fh.read().strip()
|
||||
|
||||
platform_reqs = []
|
||||
if sys.platform == "win32":
|
||||
platform_reqs.append("psutil")
|
||||
|
||||
def package_files(directory):
|
||||
entries = []
|
||||
for (path, directories, filenames) in os.walk(directory):
|
||||
|
@ -34,6 +30,7 @@ setuptools.setup(
|
|||
'send2trash',
|
||||
'pyaudio',
|
||||
'markdown',
|
||||
'jsonschema'
|
||||
] + platform_reqs
|
||||
'jsonschema',
|
||||
'psutil; sys.platform == "win32"',
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue