Permalink
Browse files

remove pkg_resorces resolving in start script. Install bash completio…

…n in /usr/share
  • Loading branch information...
baverman committed Sep 29, 2011
1 parent 0aba75f commit 950c948b4df7e21f08e868c53f48c037db07e7fb
Showing with 19 additions and 7 deletions.
  1. +1 −0 MANIFEST.in
  2. +1 −1 run-snaked.py → bin/snaked
  3. +5 −0 setup.cfg
  4. +12 −6 setup.py
View
@@ -6,3 +6,4 @@ include README.rst
include LICENSE
include CHANGES
include snaked/plugins/python/launcher/pt.py
+include completion/bash/snaked
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
from snaked.core.run import run
View
@@ -0,0 +1,5 @@
+[install]
+install_data=$prefix/share
+
+[install_data]
+force=1
View
@@ -1,4 +1,13 @@
from setuptools import setup, find_packages
+from setuptools.command import easy_install
+
+def install_script(self, dist, script_name, script_text, dev_path=None):
+ script_text = easy_install.get_script_header(script_text) + (
+ ''.join(script_text.splitlines(True)[1:]))
+
+ self.write_script(script_name, script_text, 'b')
+
+easy_install.easy_install.install_script = install_script
setup(
name = 'snaked',
@@ -8,15 +17,12 @@
description = 'Very light and minimalist editor inspired by Scribes',
long_description = open('README.rst').read(),
zip_safe = False,
- packages = find_packages(exclude=('tests', )),
+ packages = [r for r in find_packages() if not r.startswith('tests')],
+ data_files = [('snaked/completion/bash',['completion/bash/snaked'])],
install_requires = ['chardet'],
include_package_data = True,
namespace_packages = ['snaked', 'snaked.plugins'],
- entry_points = {
- 'gui_scripts': [
- 'snaked = snaked.core.run:run',
- ]
- },
+ scripts = ['bin/snaked'],
url = 'http://github.com/baverman/snaked',
classifiers = [
"Programming Language :: Python",

0 comments on commit 950c948

Please sign in to comment.