11#!/usr/bin/env python
22
33import os
4+ import sys
45
56from setuptools import setup , find_packages
67
@@ -71,17 +72,10 @@ def do_transform(self, request, response, config):
7172 long_description = open ('README.rst' ).read ()
7273
7374scripts = [
74- 'src/scripts/ canari' ,
75- 'src/scripts/ dispatcher' ,
75+ 'canari' ,
76+ 'dispatcher'
7677]
7778
78- if os .name == 'posix' :
79- scripts .extend (
80- [
81- 'src/scripts/pysudo'
82- ]
83- )
84-
8579extras = [
8680 'readline'
8781]
@@ -100,26 +94,29 @@ def do_transform(self, request, response, config):
10094 'future'
10195]
10296
103- if os . name == 'nt ' :
97+ if sys . platform == 'win32 ' :
10498 requires .append ('pyreadline' )
105- scripts += ['%s.bat' % s for s in scripts ]
99+ scripts .extend (['%s.bat' % s for s in scripts ])
100+ else :
101+ scripts .append ('pysudo' )
106102
107103setup (
108104 name = 'canari' ,
109105 author = 'Nadeem Douba' ,
110- version = '3.2.1 ' ,
106+ version = '3.2.2 ' ,
111107 author_email = 'ndouba@gmail.com' ,
112108 description = 'Canari Framework - Maltego rapid transform development and execution framework.' ,
113109 long_description = long_description ,
114110 license = 'GPLv3' ,
115111 packages = find_packages ('src' ),
116112 package_dir = {'' : 'src' },
117113 include_package_data = True ,
118- scripts = scripts ,
114+ # scripts=scripts,
119115 zip_safe = False ,
120116 install_requires = requires ,
121117 dependency_links = [],
122118 url = 'https://github.com/redcanari/canari' ,
119+ scripts = [os .path .join ('scripts' , s ) for s in scripts ],
123120 classifiers = [
124121 'Development Status :: 5 - Production/Stable' ,
125122 'Environment :: Console' ,
0 commit comments