mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-08-30 04:29:42 +00:00
Compare commits
2 Commits
c8bcaea1e8
...
23ce7b8c16
Author | SHA1 | Date | |
---|---|---|---|
23ce7b8c16 | |||
9b0d5796c1 |
@ -7,9 +7,9 @@
|
|||||||
from platform import mac_ver
|
from platform import mac_ver
|
||||||
from sys import version_info
|
from sys import version_info
|
||||||
|
|
||||||
# If macOS is 11.0 or newer try to use the pyobjc version to get around #51
|
# NOTE: version of pyobjc only supports python >= 3.6 and 10.9+
|
||||||
# NOTE: pyobjc only supports python >= 3.6
|
macos_ver = tuple(int(part) for part in mac_ver()[0].split("."))
|
||||||
if version_info >= (3, 6) and int(mac_ver()[0].split(".", 1)[0]) >= 11:
|
if version_info >= (3, 6) and macos_ver >= (10, 9):
|
||||||
try:
|
try:
|
||||||
from .plat_osx_pyobjc import send2trash
|
from .plat_osx_pyobjc import send2trash
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
2
setup.py
2
setup.py
@ -24,7 +24,7 @@ with open("README.rst", "rt") as f1, open("CHANGES.rst", "rt") as f2:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Send2Trash",
|
name="Send2Trash",
|
||||||
version="1.7.0a",
|
version="1.7.0a1",
|
||||||
author="Andrew Senetar",
|
author="Andrew Senetar",
|
||||||
author_email="arsenetar@voltaicideas.net",
|
author_email="arsenetar@voltaicideas.net",
|
||||||
packages=["send2trash"],
|
packages=["send2trash"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user