Project

General

Profile

Actions

Feature #318

closed

Determine how appionlib folder should be installed

Added by Neil Voss over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Amber Herold
Category:
-
Target version:
Start date:
04/02/2010
Due date:
% Done:

100%

Estimated time:

Description

Determine how appionlib folder should be installed.

Currently, if you copy myami to site-packages it works for sinedon, pyami, leginon, pyscope, etc. EXCEPT appionlib, because appionlib is in the appion folder.

There are three ways to properly install appionlib:

  1. Tell users to put appionlib folder directly in site-packages
  2. Tell users to put appionlib folder directly in PYTHONPATH
  3. Move appionlib to myami root directory

a typical site-packages folder is: /usr/lib/python2.6/site-packages/


Related issues 3 (0 open3 closed)

Related to Appion - Feature #319: Determine how appion/bin programs should be usedClosedAmber Herold04/02/2010

Actions
Blocks Appion - Feature #320: Make installation of pyappion easierClosedAmber Herold04/02/2010

Actions
Blocked by Appion - Bug #473: appion setup.py does not copy appionlib subfoldersClosedJim Pulokas05/12/2010

Actions
Actions #1

Updated by Neil Voss over 14 years ago

  • Subject changed from Determing how appionlib folder should be installed to Determine how appionlib folder should be installed
Actions #2

Updated by Neil Voss over 14 years ago

  • Tracker changed from Bug to Feature
Actions #3

Updated by Jim Pulokas over 14 years ago

  • Status changed from New to In Code Review
  • Assignee set to Neil Voss

Created source:trunk/appion/setup.py so appion can be installed in the python way. To install both appionlib and all the scripts from bin to their proper system locations, run the following as root user:

    python setup.py install

Or if you prefer to install to a custom location, which does not necessarily require being root, you can use various options to the above command which are documented by running:
     python setup.py --help install

For example, this will install to a custom destination in my home directory:
     python setup.py install --install-scripts=/home/pulokas/bin --install-lib=/home/pulokas/site-packages

Currently, setup.py only installs .py files in appionlib and bin subdirectories. See http://docs.python.org/distutils/setupscript.html for additional configuration that can be put into setup.py, for example to install some of the other things not in bin or appionlib.

Actions #4

Updated by Neil Voss over 14 years ago

  • Target version set to Appion/Leginon 2.0.0
Actions #5

Updated by Neil Voss over 14 years ago

  • Assignee changed from Neil Voss to Amber Herold
Actions #6

Updated by Amber Herold over 14 years ago

  • Status changed from In Code Review to In Test

I like that scripts replaces the first line with the current interpreter location.

Actions #7

Updated by Neil Voss over 14 years ago

This is broken see Bug #473

Actions #8

Updated by Neil Voss over 14 years ago

  • % Done changed from 0 to 100
Actions #9

Updated by Amber Herold over 14 years ago

This has been tested.

Actions #10

Updated by Amber Herold over 14 years ago

  • Status changed from In Test to Closed
Actions

Also available in: Atom PDF