Browse Source

Use py_modules and anonymouse package syntax

Matthew Wang 11 years ago
parent
commit
209bbe7bbf
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      setup.py

+ 4
- 2
setup.py View File

28
         'Operating System :: Unix',
28
         'Operating System :: Unix',
29
         'Programming Language :: Python',
29
         'Programming Language :: Python',
30
     ],
30
     ],
31
-    packages = [],
32
-    scripts = ['src/cdiff.py'],
31
+    package_dir = {'': 'src'},
32
+    packages = [''],
33
+    py_modules = ['cdiff'],
34
+    scripts = [],
33
     entry_points = {
35
     entry_points = {
34
         'console_scripts': [
36
         'console_scripts': [
35
             'cdiff = cdiff:main',
37
             'cdiff = cdiff:main',