mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-31 10:51:38 +00:00
Added the trash_win module.
This commit is contained in:
18
setup.py
18
setup.py
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
import os.path as op
|
||||
|
||||
from distutils.core import setup
|
||||
@@ -5,11 +6,18 @@ from distutils.extension import Extension
|
||||
|
||||
exts = []
|
||||
|
||||
exts.append(Extension(
|
||||
'_trash_osx',
|
||||
[op.join('modules', 'trash_osx.c')],
|
||||
extra_link_args=['-framework', 'CoreServices'],
|
||||
))
|
||||
if sys.platform == 'darwin':
|
||||
exts.append(Extension(
|
||||
'_trash_osx',
|
||||
[op.join('modules', 'trash_osx.c')],
|
||||
extra_link_args=['-framework', 'CoreServices'],
|
||||
))
|
||||
if sys.platform == 'win32':
|
||||
exts.append(Extension(
|
||||
'_trash_win',
|
||||
[op.join('modules', 'trash_win.c')],
|
||||
extra_link_args = ['shell32.lib'],
|
||||
))
|
||||
|
||||
setup(
|
||||
name='Send2Trash',
|
||||
|
||||
Reference in New Issue
Block a user