Skip to content

Commit

Permalink
^VIRTUAL_ENV is no longer used
Browse files Browse the repository at this point in the history
The `VIRTUAL_ENV` value is no longer set the same way in the `activate`
scripts. Use a more generalized method for modifying the path.
  • Loading branch information
rustydb committed Aug 15, 2023
1 parent 22d656d commit 3694c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcsm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Cray System Management procedures and operations.
%{buildroot}%{install_python_dir}/bin/python -m pip uninstall -y pip setuptools wheel

# Fix the virtualenv activation script, ensure VIRTUAL_ENV points to the installed location on the system.
sed -i -E 's:^(VIRTUAL_ENV=).*:\1'%{install_python_dir}':' %{buildroot}%{install_python_dir}/bin/activate
find %{buildroot}%{install_python_dir}/bin -type f | xargs -t -i sed -i 's:%{buildroot}%{install_python_dir}:%{install_python_dir}:g' {}

install -d -m 755 %{buildroot}%{doc_example_dir}
cp -pvr ./examples/* %{buildroot}%{doc_example_dir} | awk '{print $3}' | sed "s/'//g" | sed "s|$RPM_BUILD_ROOT||g" | tee -a INSTALLED_FILES
Expand Down

0 comments on commit 3694c65

Please sign in to comment.