##// 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 122 # python based programs need to be wrapped
123 123 mkdir -p $out/bin
124 ln -s ${self.python}/bin/python $out/bin
125 ln -s ${self.pyramid}/bin/* $out/bin/
124 ln -s ${self.python}/bin/python $out/bin/
126 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 129 # Symlink version control utilities
129 130 # We ensure that always the correct version is available as a symlink.
130 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 135 ln -s ${pkgs.git}/bin/git $out/bin
134 136 ln -s ${self.mercurial}/bin/hg $out/bin
135 137 ln -s ${pkgs.subversion}/bin/svn* $out/bin
138
136 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 145 do
140 146 wrapProgram $file \
141 147 --prefix PATH : $PATH \
142 148 --prefix PYTHONPATH : $PYTHONPATH \
143 149 --set PYTHONHASHSEED random
144 150 done
151
145 152 echo "DONE: vcsserver binary wrapping"
146 153
147 154 '';
General Comments 0
You need to be logged in to leave comments. Login now