Changeset 545:067d3d80ff2e


Ignore:
Timestamp:
04/09/11 22:41:43 (12 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Sort out setup.py imports, use find_packages()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r539 r545  
    1 import os
    2 
    31# usage: python setup.py command
    42#
     
    97#
    108# the goods are placed in the dist dir for you to .zip up or whatever...
     9
     10import glob
     11import os
     12import shutil
     13import sys
     14
     15from setuptools import setup, find_packages, Extension
     16try:
     17    import py2exe
     18except:
     19    pass
     20
    1121
    1222
     
    7080PACKAGEDATA = {
    7181    'cmdclass':    cmdclass,
    72 
    73     'package_dir': {'skaapsteker': 'skaapsteker',
    74                    },
    75     'packages': ['skaapsteker',
    76                 ],
     82    'packages': find_packages(),
    7783    'scripts': ['scripts/skaapsteker'],
    7884}
     
    8086PACKAGEDATA.update(METADATA)
    8187
    82 
    83 from distutils.core import setup, Extension
    84 try:
    85     import py2exe
    86 except:
    87     pass
    88 
    89 import sys
    90 import glob
    91 import os
    92 import shutil
    9388
    9489try:
     
    176171    dist_dir = os.path.join('dist',METADATA['py2app.target']+'.app')
    177172    data_dir = os.path.join(dist_dir,'Contents','Resources')
    178     from setuptools import setup
    179173
    180174    src = 'run_game.py'
Note: See TracChangeset for help on using the changeset viewer.