Compatibility issues related to the lack of appropriate packages locations in scripts/paths.py

Bug #1205819 reported by Olga Maciaszek-Sharma
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Systers-mailman
New
Undecided
Unassigned

Bug Description

After the install, the following loaction for external packages is added to paths.py:

sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
                       'site-packages')
sys.path.append(sitedir)

However, dependig on the distribution, installation method or system version (i.e. x64), packages can be also stored in different locations, for example:

sitedir = os.path.join(sys.prefix, 'local/lib', 'python'+sys.version[:3],
                       'dist-packages')
sys.path.append(sitedir)

sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
                       'dist-packages')
sys.path.append(sitedir)

sitedir = os.path.join(sys.prefix, 'lib64', 'python'+sys.version[:3],
                       'site-packages')
sys.path.append(sitedir)

This bug doesn't seem to affect mailman itself, however it affects the systers additions, as storm and psycopg2 are used there.

If the paths.py file is not manually edited, for many distributions/systems, the systers modification won't work and will log errors related to the imports from storm and psycopg2.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.