This repository has been archived by the owner on Apr 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
'pip install pyleus' installs pyleus-base.jar under /usr/local on some systems #24
Milestone
Comments
patricklucas
pushed a commit
to patricklucas/pyleus
that referenced
this issue
Oct 18, 2014
Previously, pyleus-base.jar was installed to sys.prefix + '/share/pyleus/ pyleus-base.jar', and this worked fine when Pyleus was installed in a virtualenv or via an fpm-created deb. In the former case, the jar was installed to $VIRTUAL_ENV/share/pyleus/pyleus-base.jar, and in the latter, it made its was to /usr/share/pyleus/pyleus-base.jar. However, if a user just ran 'pip install pyleus' on their system, the jar would actually be installed to /usr/local/share/pyleus/pyleus-base.jar, even though sys.prefix was just '/usr' when pyleus was executed. Pyleus would thus look in /usr/share/pyleus and fail when it couldn't find the base jar. This change uses the seemingly preferred method of including the jar within the package itself, and using the pkg_resources module to construct its filesystem path. The build step of removing the base jar from a topology jar (since it is unneeded and takes up space) required modification as well. Closes Yelp#24
patricklucas
pushed a commit
to patricklucas/pyleus
that referenced
this issue
Oct 18, 2014
Previously, pyleus-base.jar was installed to sys.prefix + '/share/pyleus/ pyleus-base.jar', and this worked fine when Pyleus was installed in a virtualenv or via an fpm-created deb. In the former case, the jar was installed to $VIRTUAL_ENV/share/pyleus/pyleus-base.jar, and in the latter, it made its was to /usr/share/pyleus/pyleus-base.jar. However, if a user just ran 'pip install pyleus' on their system, the jar would actually be installed to /usr/local/share/pyleus/pyleus-base.jar, even though sys.prefix was just '/usr' when pyleus was executed. Pyleus would thus look in /usr/share/pyleus and fail when it couldn't find the base jar. This change uses the seemingly preferred method of including the jar within the package itself, and using the pkg_resources module to construct its filesystem path. The build step of removing the base jar from a topology jar (since it is unneeded and takes up space) required modification as well. Closes Yelp#24
patricklucas
pushed a commit
to patricklucas/pyleus
that referenced
this issue
Oct 18, 2014
Previously, pyleus-base.jar was installed to sys.prefix + '/share/pyleus/ pyleus-base.jar', and this worked fine when Pyleus was installed in a virtualenv or via an fpm-created deb. In the former case, the jar was installed to $VIRTUAL_ENV/share/pyleus/pyleus-base.jar, and in the latter, it made its way to /usr/share/pyleus/pyleus-base.jar. However, if a user just ran 'pip install pyleus' on their system, the jar would actually be installed to /usr/local/share/pyleus/pyleus-base.jar, even though sys.prefix was just '/usr' when pyleus was executed. Pyleus would thus look in /usr/share/pyleus and fail when it couldn't find the base jar. This change uses the seemingly preferred method of including the jar within the package itself, and using the pkg_resources module to construct its filesystem path. The build step of removing the base jar from a topology jar (since it is unneeded and takes up space) required modification as well. Closes Yelp#24
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I believe we ran into this at some point in the past and solved it, or so we thought.
I can reproduce this under docker:
Everything works fine if you install and run Pyleus in a virtualenv, though:
The text was updated successfully, but these errors were encountered: