viper-framework / viper

Binary analysis and management framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data files are not properly created during installation

botherder opened this issue · comments

commented

I am still trying to get a proper installation working using pip3 install .
The objective is to be able to eventually create a PyPi package to distribute.

Currently, this is not working:

data_files = [('/usr/share/viper/', ['viper.conf.sample']),
              ('/usr/share/viper/peid/', ['data/peid/UserDB.TXT'])]
for rule_name in os.listdir('data/yara/'):
    data_files.append(('/usr/share/viper/yara/', ['data/yara/{0}'.format(rule_name)]))

And latter adding this to:

data_files=data_files,

These files are not created for me neither when run as regular user or as root. We should try to keep these static files in the package_data perhaps. Thoughts?