1
0
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:
Virgil Dupras
2010-04-06 10:28:43 +01:00
parent fc511be6b2
commit b8434f7cc0
2 changed files with 70 additions and 5 deletions

View File

@@ -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',