1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-31 10:51:38 +00:00

Renamed _trash_* modules to _send2trash_* and added python wrapper around them.

--HG--
rename : modules/trash_osx.c => modules/send2trash_osx.c
rename : modules/trash_win.c => modules/send2trash_win.c
This commit is contained in:
Virgil Dupras
2010-04-06 18:04:32 +02:00
parent be87b55146
commit 8a1dff2947
7 changed files with 37 additions and 13 deletions

View File

@@ -1,21 +1,21 @@
import sys
import os.path as op
from distutils.core import setup
from setuptools import setup
from distutils.extension import Extension
exts = []
if sys.platform == 'darwin':
exts.append(Extension(
'_trash_osx',
[op.join('modules', 'trash_osx.c')],
'_send2trash_osx',
[op.join('modules', 'send2trash_osx.c')],
extra_link_args=['-framework', 'CoreServices'],
))
if sys.platform == 'win32':
exts.append(Extension(
'_trash_win',
[op.join('modules', 'trash_win.c')],
'_send2trash_win',
[op.join('modules', 'send2trash_win.c')],
extra_link_args = ['shell32.lib'],
))