Win32 HOWTO: Installing Dulwich library

Asked by speedwaystar

(this isn't explained anywhere and it really should be)

* Download the Dulwich tar.gz
* Extract the Dulwich library e.g. dulwich-0.6.2.tar.gz\dulwich-0.6.2.tar\dulwich-0.6.2\dulwich
* Create "C:\Program Files\Bazaar\plugins\git\_lib" (underscore lib... yes, really)
* Copy the Dulwich library (above) to aforementioned _lib
* You're good.

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Git Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

On Tue, 2010-11-02 at 17:18 +0000, speedwaystar wrote:
> New question #132255 on Bazaar Git Plugin:
> https://answers.launchpad.net/bzr-git/+question/132255
>
> (this isn't explained anywhere and it really should be)
>
> * Download the Dulwich tar.gz
> * Extract the Dulwich library e.g. dulwich-0.6.2.tar.gz\dulwich-0.6.2.tar\dulwich-0.6.2\dulwich
^ This doesn't seem right
> * Create "C:\Program Files\Bazaar\plugins\git\_lib" (underscore lib... yes, really)
> * Copy the Dulwich library (above) to aforementioned _lib
> * You're good.
Thanks for the hints. Unfortunately where to install dulwich (afaik)
depends on the way you've installed Bazaar. Ideally the bazaar installer
should ship bzr-git itself and take care of all of this for you.

Cheers,

Jelmer

Revision history for this message
speedwaystar (speedwaystar) said :
#2

Thanks Jelmer Vernooij, that solved my question.

Revision history for this message
Eli Zaretskii (eliz) said :
#3

The _lib/ trick did work for me, but I agree that it is somewhat kludgey, and I'm not sure it will work with other Pythin modules or other versions of bzr.

See https://lists.ubuntu.com/archives/bazaar/2011q1/071804.html and https://lists.ubuntu.com/archives/bazaar/2011q1/071818.html about a somewhat more elegant way of installing extra Python modules required by Bazaar plugins.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#4

FAQ #1506: “Installing Dulwich on windows”.

Revision history for this message
speedwaystar (speedwaystar) said :
#5

well spotted.

tl;dr:

>To install an extra Python module on Windows for bzr installed with
 >a stand-alone installer, add the Python module's main directory,
 >with all the files in it, to library.zip.

or:

> create /plugins/$addmodules.py:
>
>"""Extends sys.path to include the 'site-packages' subdirectory."""
>
> import sys
> import os
> if getattr(sys, 'frozen', None) is not None:
> sys.path.append(os.path.join(os.path.dirname(sys.executable),'site-packages'))

assumptions: '$' file prefix doesn't trigger any strange python module loading rules

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.