systemd / pystemd

A thin Cython-based wrapper on top of libsystemd, focused on exposing the dbus API via sd-bus in an automated and easy to consume way.
GNU Lesser General Public License v2.1
409 stars 36 forks source link

Install process fails #44

Closed SamuelDudley closed 4 years ago

SamuelDudley commented 4 years ago

Following the read me and running

pip install -r requirements.txt
python setup.py install

The install fails with the use of Path objects in package_data:

(.venv) mav@dev:~/code/pystemd-testing/pystemd$ python3 setup.py install
Compiling pystemd/daemon.pyx because it changed.
Compiling pystemd/dbusexc.pyx because it changed.
Compiling pystemd/dbuslib.pyx because it changed.
Compiling pystemd/journal.pyx because it changed.
[1/4] Cythonizing pystemd/daemon.pyx
[2/4] Cythonizing pystemd/dbusexc.pyx
[3/4] Cythonizing pystemd/dbuslib.pyx
[4/4] Cythonizing pystemd/journal.pyx
error in pystemd setup command: "values of 'package_data' dict" must be a list of strings (got [PosixPath('RELEASE'), PosixPath('daemon.pyi'), PosixPath('utils.pyi'), PosixPath('base.pyi'), PosixPath('systemd1/manager.pyi'), PosixPath('systemd1/unit.pyi')])

edit: updated to remove the cython requirement "fix"... that is clearly covered in the read me.