Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove pkg_resorces resolving in start script. Install bash completio…

…n in /usr/share
  • Loading branch information...
commit 950c948b4df7e21f08e868c53f48c037db07e7fb 1 parent 0aba75f
@baverman authored
View
1  MANIFEST.in
@@ -6,3 +6,4 @@ include README.rst
include LICENSE
include CHANGES
include snaked/plugins/python/launcher/pt.py
+include completion/bash/snaked
View
2  run-snaked.py → bin/snaked
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
from snaked.core.run import run
View
5 setup.cfg
@@ -0,0 +1,5 @@
+[install]
+install_data=$prefix/share
+
+[install_data]
+force=1
View
18 setup.py
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.