Ticket #48 (new enhancement)

Opened 13 months ago

Last modified 3 weeks ago

installing python modules with respect to the PREFIX build option

Reported by: gilles.bassiere Owned by: artem
Priority: normal Milestone:
Component: Boost.Python Binding Version: SVN Trunk
Severity: Enhancement Keywords: scons
Cc: Patch Needs Improvement: no
Needs Docmentation: no Has Patch?: no
Design Decision Needed: no

Description

When installing mapnik into a user directory (without superuser privileges), the build fails because the Scons can not install Python modules in the main Python tree.

In order to force Scons to install Python modules into the specified prefix, I changed line 26 of bindings/python/SConscript from :

prefix = env['PYTHON_PREFIX'] + '/' + env['LIBDIR_SCHEMA'] + '/python' + env['PYTHON_VERSION'] + '/site-packages/'

to:

prefix = env['PREFIX'] + '/' + env['LIBDIR_SCHEMA'] + '/python' + env['PYTHON_VERSION'] + '/site-packages/'

I do not know if this solution could be recommended but it would be great to respect the PREFIX build option anyway.

Change History

Changed 11 months ago by david

  • keywords scons added

Changed 2 months ago by springmeyer

  • priority set to normal

See Ticket #10 for a related issue

Changed 3 weeks ago by springmeyer

  • has_patch unset
  • patch_need_improvement unset
  • need_documentation unset
  • design_decision_needed unset

Also see ticket #137

Note: See TracTickets for help on using tickets.