← Back to team overview

hugin-devs team mailing list archive

[Bug 790883] Re: .py files install to dist-packages not site-packages

 

I am no expert either, but the logical place where I would put Hugin Python scripts is:
* /usr/local/bin/ (or /usr/bin) for HSI scripts, i.e. those that are meant to be CLI commands or stand-alone GUI tools that simply use Hugin functionality.
* /usr/local/share/hugin/plugins (or /usr/share/hugin/plugins) for HPI scripts, i.e. those that only make sense when run as plugins from within Hugin.  The plugins directory is to be created new.

The above is for "system-wide" distributed scripts and plugins that will
be part of core Hugin.

Beyond that, the user can write their own scripts anywhere they can put
executables with 'import hsi'; and we should make provision for a
standard location in the user's own folder for his self-written plug-
ins.

I am not sure that it makes sense to install .pyc and .pyo - IIRC these
are generated automatically the first time the .py is executed.

We will also need equivalent locations for Windows and OSX.

** Changed in: hugin
       Status: New => Confirmed

** Changed in: hugin
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/790883

Title:
  .py files install to dist-packages not site-packages

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  [Just working on the 2011.1.0 fedora rpm package]

  I'm no python expert so correct me if I'm wrong, the Hugin .py, .pyc &
  .pyo files install to here:

     $LIBDIR/python2.7/dist-packages

  ...whereas the fedora documentation suggests they would go into:

     $LIBDIR/python2.7/site-packages

  In particular they say that python libs should go in whatever location
  you get when you run this command:

    python -c "from distutils.sysconfig import get_python_lib;
  print(get_python_lib(1))"

  Which here is /usr/lib64/python2.7/site-packages


References