-
-
Save mgrandi/b3706bb399200859b89c to your computer and use it in GitHub Desktop.
bzr build notes (rough)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
pip install: | |
################# | |
sphinx | |
cython | |
hexagonit.recipe.download | |
paramiko | |
jinja2 | |
################# | |
need: | |
################# | |
visual stuido 2008, run vcvarsall.bat before building stuff | |
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" | |
hhc.exe | |
(from windows 7/8 sdk?) | |
"C:\Program Files (x86)\HTML Help Workshop\hhc.exe" | |
py2exe | |
(can't install via pip) | |
win32com | |
(or Python for Windows extensions) | |
pyqt4 for python27 32 bit | |
(minimal install) | |
################# | |
need: (install and put in path) | |
################# | |
(get from gnu.org website, or ftp://gnu.mirror.iweb.com/) | |
(also make sure to put the 'bin' folders in your path) | |
gettext | |
gettext tools | |
libiconv | |
inno setup 5 (C:\Program Files (x86)\Inno Setup 5\ISCC.EXE) | |
################# | |
edited: | |
################# | |
python-fastimport is now on github, but the script is still pointing to the launchpad repo, | |
and its looking for a tag that doesn't exist, so i changed what tag its looking for | |
added os.path.normpath() around a couple of places because stuff like hhc.exe doesn't like directories | |
with forward slashes, wants backward slashes | |
DUE TO how its searches for python.exe files, it searches in --python-dirs, which defaults to C: | |
so it looks for python.exe files and the first one it gets to is c:\\python33\python.exe, so you will have to temporarily | |
rename it to be python3 or something! | |
APPARENTLY tortoisebzr is awful, and during the setup.py install script, you get: | |
"lib/gettext/project-id subprocess failed: Bad file descriptor", but according to http://pysvn.tigris.org/ds/viewMessage.do?dsForumId=3578&viewType=browseAll&dsMessageId=2882599, this is a 'normal' error message and should not cuase the entire build to | |
fail.....i'm just commenting out that project for now =/ | |
EDITED 2: i reenabled it, but removed gettext and stuff from the path so it just skips PO compiling | |
tortoisebzr i dont really want, but some other script is looking for a dll that it exports so i reenabled it | |
it can't find MSBuild or "devenv.com" (in the registry), so i changed msbuild to be VCExpress, which does exist in | |
the install for visual studio 2008 | |
OK so i basically converted the .sln to vs2013 and built it there, since i guess visual studio 2008 requires some | |
ugly ass hack to get it to build x64 dll's, http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/. It was building the x86 ones fine, just not the x64.... | |
i made it so that in the function where it tries to build the dlls, i just return early since it was already built, | |
cause after upgrading the solution if you have vs2008 try and use it , it just errors out. | |
the bzr.iss script | |
it had: | |
if IsWin64 then | |
tovmsi := 'TortoiseOverlays-1.1.2.19334-x64.msi' | |
else | |
tovmsi := 'TortoiseOverlays-1.1.2.19334-win32.msi' | |
but it really needed to be: | |
if IsWin64 then begin | |
tovmsi := 'TortoiseOverlays-1.1.2.19334-x64.msi' | |
end else begin | |
tovmsi := 'TortoiseOverlays-1.1.2.19334-win32.msi' | |
end; | |
i also had to comment out: | |
; Include .mo files with their special unixy directory structure | |
;Source: "share\locale\*.*"; DestDir: "{app}\locale"; Flags: createallsubdirs ignoreversion recursesubdirs restartreplace uninsrestartdelete; | |
cause i didn't compile any .mo files | |
I ALSO had to copy: | |
msvcp120.dll | |
msvcr120.dll | |
vccorlib120.dll | |
not sure which ones i needed, or what version (these are visual studio 2013 versions...) | |
from Microsoft Visual Studio 12 / vc / redist / x86/Microsoft.VC120.CRT | |
to | |
bzr-windows-installers/build-win32/releases/bzr-2.6/win32_bzr.exe | |
it DID NOT do this for me, maybe there is a step missing from the script? | |
################# | |
run: | |
################# | |
(also need to edit bazaar_releases.py for the plugins/new releases that you want to install) | |
(the --python means it looks for a folder in C:// called that, and runs that python.exe) | |
python build.py installers bzr-2.6 --python Python27 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment