viper-framework / viper

Binary analysis and management framework
Other
1.54k stars 353 forks source link

Data files are not properly created during installation #766

Closed botherder closed 4 years ago

botherder commented 4 years ago

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?