uvemas / ViTables

ViTables, a GUI for PyTables
GNU General Public License v3.0
153 stars 55 forks source link

data_files copied to weird location when installed through setuptools #104

Closed loathingKernel closed 1 year ago

loathingKernel commented 3 years ago

Data files are copied to a weird path when installed throught setup tools as shown by the following log

running install_data
creating /tmp/makepkg/vitables/pkg/vitables/usr/*
copying ANNOUNCE.txt -> /tmp/makepkg/vitables/pkg/vitables/usr/*
copying ChangeLog.txt -> /tmp/makepkg/vitables/pkg/vitables/usr/*
copying INSTALL.txt -> /tmp/makepkg/vitables/pkg/vitables/usr/*
copying LICENSE.txt -> /tmp/makepkg/vitables/pkg/vitables/usr/*
copying README.txt -> /tmp/makepkg/vitables/pkg/vitables/usr/*
copying VERSION -> /tmp/makepkg/vitables/pkg/vitables/usr/*

Installed by running

python setup.py install --root="/tmp/makepkg/vitables/pkg/vitables" --optimize=1

The expected location would be something like /usr/share/doc/vitables depending on the distribution.

uvemas commented 1 year ago

In the 3.0.3 version setuptools is not required. Packages are built via hatch.