Permalink
Browse files

update distutils-environment to the current positions of the files

  • Loading branch information...
spiderbit committed Mar 7, 2009
1 parent a7e1304 commit 82476faf54fe9487b0d24111ff23b8ed6326fd70
Showing with 3 additions and 21 deletions.
  1. +0 −2 MANIFEST.in
  2. +3 −19 setup.py
View
@@ -1,7 +1,5 @@
include *.txt run_canta run_song_generator
recursive-include media *
recursive-include locale *
recursive-include misc *
include starter/canta
include starter/csg
#prune examples/sample?/build
View
@@ -1,23 +1,9 @@
import os, sys
#import ez_setup
#ez_setup.use_setuptools()
#from setuptools import setup, find_packages
cmd_class = {}
if sys.argv[1] == 'bdist_debian':
import bdist_debian
cmd_class = {'bdist_debian': bdist_debian.bdist_debian}
from distutils.core import setup
from distutils.version import StrictVersion
#import py2exe
from glob import glob
version_file = open('VERSION')
version = version_file.next()
def get_files(path):
files = []
elements = glob(path + '/*')
@@ -28,7 +14,7 @@ def get_files(path):
files.append(os.path.join(elem))
return files
data_dirs = ('locale', 'songs', 'themes', 'misc')
data_dirs = ('locale', 'misc')
data_files = []
for data_dir in data_dirs:
@@ -38,10 +24,10 @@ def get_files(path):
for file in data_files:
setup_data_files.append(('share/games/canta/'+os.path.dirname(file), [file]))
setup_data_files.append(('share/games/canta/', ['ABOUT.txt', 'changelog.txt', 'HACKING.txt', 'INSTALL.txt', 'LICENSE.txt', 'run_canta', 'run_song_generator', 'configspec']))
setup_data_files.append(('share/games/canta/', ['run_canta', 'run_song_generator']))
setup_data_files.append(('share/pixmaps', ['misc/canta.png', 'misc/csg.png']))
setup_data_files.append(('share/applications', ['misc/canta.desktop', 'misc/csg.desktop']))
setup_data_files.append(('share/games/canta/misc', ['misc/HELP.txt']))
setup_data_files.append(('share/games/canta/misc', ['misc/HELP.txt', 'misc/ABOUT.txt', 'misc/configspec']))
dirs = []
@@ -64,10 +50,8 @@ def get_files(path):
packages = dirs,
#packages = find_packages(),
package_dir={'canta': 'canta'},
cmdclass = cmd_class,
scripts = ['starter/canta', 'starter/csg'],
author="Andreas Kattner, Felix R. Lopez, Stefan Huchler",
author_email="andreas@canta-game.org, felix@canta-game.org, stefan@canta-game.org",
version = version,
data_files = setup_data_files,
)

0 comments on commit 82476fa

Please sign in to comment.