Sfoglia il codice sorgente

Use symlink for #issue 1 as distutils does not support entry_points

Matthew Wang 11 anni fa
parent
commit
8d9d883e63
2 ha cambiato i file con 3 aggiunte e 7 eliminazioni
  1. 2
    7
      setup.py
  2. 1
    0
      src/cdiff

+ 2
- 7
setup.py Vedi File

@@ -1,7 +1,7 @@
1 1
 #!/usr/bin/env python
2 2
 
3 3
 from __future__ import with_statement
4
-from setuptools import setup
4
+from distutils.core import setup
5 5
 
6 6
 with open('README.md') as doc:
7 7
     long_description = doc.read()
@@ -31,10 +31,5 @@ setup(
31 31
     package_dir = {'': 'src'},
32 32
     packages = [''],
33 33
     py_modules = ['cdiff'],
34
-    scripts = [],
35
-    entry_points = {
36
-        'console_scripts': [
37
-            'cdiff = cdiff:main',
38
-        ],
39
-    },
34
+    scripts = ['src/cdiff'],
40 35
 )

+ 1
- 0
src/cdiff Vedi File

@@ -0,0 +1 @@
1
+cdiff.py