Function dist install on linux

git-svn-id: http://comictagger.googlecode.com/svn/trunk@457 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-02-07 04:19:20 +00:00
parent 28e2d93314
commit 811759478a
3 changed files with 11 additions and 11 deletions

View File

@ -1 +0,0 @@
recursive-include comictagger *

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
from comictagger.main import ctmain
from comictaggerlib.main import ctmain
ctmain()

View File

@ -2,14 +2,14 @@
from distutils.core import setup
import distutils.command.install_scripts
import os
import shutil
#import os
#import shutil
# Things are weird if the script has a py. Will this break things for windows???
if not os.path.exists('scripts/comictagger'):
if not os.path.exists('scripts'):
os.makedirs('scripts')
shutil.copyfile('comictagger.py', 'scripts/comictagger')
#if not os.path.exists('scripts/comictagger'):
# if not os.path.exists('scripts'):
# os.makedirs('scripts')
# shutil.copyfile('comictagger.py', 'scripts/comictagger')
setup(name = "comictagger",
@ -18,11 +18,12 @@ setup(name = "comictagger",
author = "Anthony Beville",
author_email = "comictagger@gmail.com",
url = "http://code.google.com/p/comictagger/",
packages = [ "comictagger", "comictagger/UnRAR2" ] ,
packages = [ "comictaggerlib", "comictaggerlib/UnRAR2" ] ,
package_data = {
'comictagger': ['ui/*.ui', 'graphics/*'] ,
'comictaggerlib': ['ui/*.ui', 'graphics/*'] ,
'comictaggerlib/UnRAR2': ['UnRARDLL/*.*', 'UnRARDLL/x64/*.*'] ,
},
scripts = ["scripts/comictagger"],
scripts = ["comictagger.py"],
long_description = """
ComicTagger is a multi-platform app for writing metadata to comic archives, written in Python and PyQt.