Permalink
Browse files

Better support for installing without setuptools

  • Loading branch information...
1 parent fc0a9fd commit 9516090cdd6905e9eb9a618324cdcd023f27fc97 @kfdm committed Mar 11, 2013
Showing with 14 additions and 7 deletions.
  1. +3 −0 scripts/gntp
  2. +11 −7 setup.py
View
@@ -0,0 +1,3 @@
+#!python
+import gntp.cli
+gntp.cli.main()
View
@@ -1,9 +1,17 @@
-#!/usr/bin/env python
-
try:
from setuptools import setup
+ kwargs = {
+ 'entry_points':{
+ 'console_scripts': [
+ 'gntp = gntp.cli:main'
+ ]
+ }
+ }
except ImportError:
from distutils.core import setup
+ kwargs = {
+ 'scripts':['scripts/gntp']
+ }
from gntp.version import __version__
@@ -30,9 +38,5 @@
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
- entry_points={
- 'console_scripts': [
- 'gntp = gntp.cli:main'
- ]
- }
+ **kwargs
)

0 comments on commit 9516090

Please sign in to comment.