|
@ -6,6 +6,8 @@ $ python setup.py install |
|
|
""" |
|
|
""" |
|
|
from patacrep import __STR_VERSION__ |
|
|
from patacrep import __STR_VERSION__ |
|
|
|
|
|
|
|
|
|
|
|
from distutils.core import setup |
|
|
|
|
|
|
|
|
import sys |
|
|
import sys |
|
|
import os |
|
|
import os |
|
|
import site |
|
|
import site |
|
@ -17,7 +19,7 @@ SETUP = {"name": 'patacrep', |
|
|
"author": 'The Songbook team', |
|
|
"author": 'The Songbook team', |
|
|
"author_email": 'crep@team-on-fire.com', |
|
|
"author_email": 'crep@team-on-fire.com', |
|
|
"url": 'https://github.com/patacrep/patacrep', |
|
|
"url": 'https://github.com/patacrep/patacrep', |
|
|
"packages": ['patacrep'], |
|
|
"packages": ['patacrep', 'patacrep.content'], |
|
|
"license": "GPLv2 or any later version", |
|
|
"license": "GPLv2 or any later version", |
|
|
"scripts": ['songbook'], |
|
|
"scripts": ['songbook'], |
|
|
"requires": [ |
|
|
"requires": [ |
|
@ -48,24 +50,8 @@ SETUP = {"name": 'patacrep', |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if sys.platform.startswith('win32'): |
|
|
if sys.platform.startswith('win32'): |
|
|
try: |
|
|
from shutil import copy |
|
|
from cx_Freeze import setup, Executable |
|
|
copy("songbook", "songbook.py") |
|
|
exe = Executable(script="songbook") |
|
|
SETUP["scripts"] = ['songbook.py'] |
|
|
except ImportError: |
|
|
|
|
|
# Only a source installation will be possible |
|
|
|
|
|
from distutils.core import setup |
|
|
|
|
|
exe = None |
|
|
|
|
|
build_options = {'build_exe': { |
|
|
|
|
|
"include_files": ["plasTeX/", "patacrep/"], |
|
|
|
|
|
"excludes": ["plasTeX"], |
|
|
|
|
|
"includes": ["UserList", "UserString", "new", "ConfigParser"] |
|
|
|
|
|
}} |
|
|
|
|
|
SETUP.update({"options": build_options, |
|
|
|
|
|
"executables": [exe], |
|
|
|
|
|
"package_data": {}, |
|
|
|
|
|
}) |
|
|
|
|
|
else: |
|
|
|
|
|
from distutils.core import setup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup(**SETUP) |
|
|
setup(**SETUP) |
|
|