Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Augment distribution #85

Merged
merged 4 commits into from
Jun 5, 2019
Merged

Conversation

michaelweiser
Copy link
Contributor

Add additional files to the source distribution and install them into <prefix>/share/doc/peekaboo to give the user an actual chance to install and run us from only the PyPI distribution. This is also to be used by the installer so it does not rely on having the full source directory available and config file duplication is minimized.

Add ruleset.conf.sample to the distribution and configure setuptools to
install it together with the README, peekaboo.conf.sample and our
systemd unit into an fhs-like documentation directory.

Add a number of comments to setup.py so we remember why this seems to be
the least disruptive way out of the limited options presented by the
python/setuptools/distutils/pip mechanics of providing these files at a
location visible to users and still somewhat manageable by alternative
packagers (e.g. Linux distributions).

In short again:
- package_data would hide the files away below the site-packages
  directory making them invisible to the user and hard(er) to find
  programmatically
- absolute paths really don't work well with data_files
- relative paths work somewhat better but still not fully consistently
  between setup.py and pip
- overriding the install command solves the installation but not the
  packaging problem
Add startup order relative to cuckoo-api to systemd unit. It's not a
hard requirement (no Require=) but only ordering so that if a cuckoo-api
service exists, we're started after it in case we're running in api mode
and will actually try to talk to it.
@michaelweiser michaelweiser self-assigned this May 21, 2019
@michaelweiser michaelweiser added this to the 2.0 milestone May 21, 2019
Add mention to the documentation that peekaboo now installs sample
peekaboo.conf and ruleset.conf files.
@Jack28
Copy link
Member

Jack28 commented Jun 4, 2019

LGTM

Find my comment here scVENUS/PeekabooAV-Installer#41

@Jack28 Jack28 closed this Jun 4, 2019
@Jack28
Copy link
Member

Jack28 commented Jun 4, 2019

This should be approved, rather than closed, sorry

@Jack28 Jack28 reopened this Jun 4, 2019
Document how we test PyPI interaction using devpi.
@michaelweiser michaelweiser merged commit f32a80a into scVENUS:master Jun 5, 2019
@michaelweiser michaelweiser deleted the augment-dist branch January 13, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants