##// END OF EJS Templates
packaging: new wrapping logic on binary scripts:...
marcink -
r567:956bb6e4 default
parent child Browse files
Show More
@@ -121,27 +121,34 b' let'
121
121
122 # python based programs need to be wrapped
122 # python based programs need to be wrapped
123 mkdir -p $out/bin
123 mkdir -p $out/bin
124 ln -s ${self.python}/bin/python $out/bin
124 ln -s ${self.python}/bin/python $out/bin/
125 ln -s ${self.pyramid}/bin/* $out/bin/
126 ln -s ${self.gunicorn}/bin/gunicorn $out/bin/
125 ln -s ${self.gunicorn}/bin/gunicorn $out/bin/
126 ln -s ${self.pyramid}/bin/prequest $out/bin/
127 ln -s ${self.pyramid}/bin/pserve $out/bin/
127
128
128 # Symlink version control utilities
129 # Symlink version control utilities
129 # We ensure that always the correct version is available as a symlink.
130 # We ensure that always the correct version is available as a symlink.
130 # So that users calling them via the profile path will always use the
131 # So that users calling them via the profile path will always use the
131 # correct version.
132 # correct version. Wrapping is required so those can "import"
133 # vcsserver python hooks.
132
134
133 ln -s ${pkgs.git}/bin/git $out/bin
135 ln -s ${pkgs.git}/bin/git $out/bin
134 ln -s ${self.mercurial}/bin/hg $out/bin
136 ln -s ${self.mercurial}/bin/hg $out/bin
135 ln -s ${pkgs.subversion}/bin/svn* $out/bin
137 ln -s ${pkgs.subversion}/bin/svn* $out/bin
138
136 echo "DONE: created symlinks into $out/bin"
139 echo "DONE: created symlinks into $out/bin"
140 DEPS="$out/bin/*"
137
141
138 for file in $out/bin/*;
142 # wrap only dependency scripts, they require to have full PYTHONPATH set
143 # to be able to import all packages
144 for file in $DEPS;
139 do
145 do
140 wrapProgram $file \
146 wrapProgram $file \
141 --prefix PATH : $PATH \
147 --prefix PATH : $PATH \
142 --prefix PYTHONPATH : $PYTHONPATH \
148 --prefix PYTHONPATH : $PYTHONPATH \
143 --set PYTHONHASHSEED random
149 --set PYTHONHASHSEED random
144 done
150 done
151
145 echo "DONE: vcsserver binary wrapping"
152 echo "DONE: vcsserver binary wrapping"
146
153
147 '';
154 '';
General Comments 0
You need to be logged in to leave comments. Login now