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

$PYTHONPATH should be configured automatically by the 'run' script when used with -i (install) #308

Closed
macosforgebot opened this Issue Aug 6, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@macosforgebot

macosforgebot commented Aug 6, 2010

s.adam@… originally submitted this as ticket:390


After unpacking & building calendarserver-2.4, I installed it to my machine via: DESTDIR=/opt/CalendarServer ./run -s -i "$DESTDIR"

The installation itself works, however the 'run' script does not set $PYTHONPATH in the installed binaries as it does when running from the source directory. This results in Python errors when attempting to start the server from the new installation directory.

This problem can be worked around by manually wrapping the caldavd binary in a shell script and setting PYTHONPATH="$DESTDIR/usr/lib/python2.6/site-packages:$DESTDIR/usr/lib64/python2.6/site-packages".

Note - I'm on an x86_64 system... On x86 systems, only PYTHONPATH="$DESTDIR/usr/lib/python2.6/site-packages" would be required.

@macosforgebot

This comment has been minimized.

Show comment
Hide comment
@macosforgebot

macosforgebot Feb 20, 2011

@wsanchez originally submitted this as comment:1:⁠ticket:390

  • Radar deleted
  • Status changed from new to closed
  • Resolution changed from to Behaves correctly

The -i flag sets a location to install into such that you can create a package from the data in that location, where that location is equivalent to /. It passes --root to setup.py. So this behaves as expected.

It sounds like what you want is --prefix=/opt/CalendarServer. If you want to get custom with the installation, then you need to build and install each dependency yourself, then run our setup.py directly.

macosforgebot commented Feb 20, 2011

@wsanchez originally submitted this as comment:1:⁠ticket:390

  • Radar deleted
  • Status changed from new to closed
  • Resolution changed from to Behaves correctly

The -i flag sets a location to install into such that you can create a package from the data in that location, where that location is equivalent to /. It passes --root to setup.py. So this behaves as expected.

It sounds like what you want is --prefix=/opt/CalendarServer. If you want to get custom with the installation, then you need to build and install each dependency yourself, then run our setup.py directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment