@ -24,7 +24,8 @@ import sys
import distutils
from distutils . core import setup
from distutils . command . install_data import install_data
from distutils . command . install import install
from distutils . dir_util import copy_tree
import itertools
icon_system_path = [ ' /usr/share/icons/Calculate/16x16/client-gui ' ]
@ -107,13 +108,19 @@ for theme in ("gnome","hicolor"):
__version__ = " 3.5.0_alpha1 "
__app__ = " calculate-console-gui "
module_name = " calculate.consolegui "
packages = [
" calculate. " + str ( ' . ' . join ( root . split ( os . sep ) [ 1 : ] ) )
for root , dirs , files in os . walk ( ' pym/consolegui ' )
if ' __init__.py ' in files
]
#TODO remove this once actual libs are ported
class my_install ( install ) :
def run ( self ) :
install . run ( self )
copy_tree ( " ./libs_crutch " , f " { self . install_lib } calculate " )
setup (
name = __app__ ,
version = __version__ ,
@ -126,5 +133,5 @@ setup(
package_dir = { ' calculate.consolegui ' : " pym/consolegui " } ,
packages = packages ,
scripts = ( glob ( ' bin/* ' ) ) ,
cmdclass = { ' install_data ' : install_data }
)
cmdclass = { ' install_data ' : install_data , " install " : my_install }
)