<div dir="ltr"><div><div><div>Hi,<br><br></div>Thank you for your reply and useful links.<br><br></div>Mine main confusion was that i can install the Python33 collection from <a href="https://www.softwarecollections.org/en/">https://www.softwarecollections.org/en/</a> without doing 'yum install centos-release-SCL'. Now I have numpy and scipy!<br>

<br></div><div>In the near future I'll try to build a simple package and then numexpr (because it causes some pain in my further buildout based deployment).<br><br></div><div>I took some notes, and would like to post them as I'm finished and converted more to a post. Any comments are welcome  <a href="https://github.com/qmcs/qmcs.github.io/pull/35/files">https://github.com/qmcs/qmcs.github.io/pull/35/files</a><br>

</div><div><br></div><div>Is there an IRC channel where scl issues should be discussed.<br></div><div><div class="gmail_extra"><br>--<br></div><div class="gmail_extra">Dima<br><br></div><div class="gmail_extra"><div class="gmail_quote">

On Fri, Aug 15, 2014 at 3:14 PM, Miroslav Suchý <span dir="ltr"><<a href="mailto:msuchy@redhat.com" target="_blank">msuchy@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="">On 08/15/2014 12:19 PM, Dmitrijs Milajevs wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I have the following problem. At a computing server at my university centos 6.5 is installed. The software I wish to run<br>
there requires recent versions of python3, numpy, scipy. Manually compiling python and pip-installing is too difficult.<br>
I would like to:<br>
<br>
1. create a custom software collection that depends on python33 provided by centos.<br>
<a href="http://wiki.centos.org/AdditionalResources/Repositories/SCL" target="_blank">http://wiki.centos.org/<u></u>AdditionalResources/<u></u>Repositories/SCL</a><br>
</blockquote>
> 2. however, they don't provide numpy and scipy. So I would like to add these packages to my collection.<br>
<br></div>
Please read:<br>
<a href="https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/2/html/Software_Collections_Guide/chap-Extending_Red_Hat_Software_Collections.html" target="_blank">https://access.redhat.com/<u></u>documentation/en-US/Red_Hat_<u></u>Developer_Toolset/2/html/<u></u>Software_Collections_Guide/<u></u>chap-Extending_Red_Hat_<u></u>Software_Collections.html</a><br>


<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
3. add other packages, e.g. seaborn <a href="http://web.stanford.edu/~mwaskom/software/seaborn/" target="_blank">http://web.stanford.edu/~<u></u>mwaskom/software/seaborn/</a><br></div>
<<a href="http://web.stanford.edu/%7Emwaskom/software/seaborn/" target="_blank">http://web.stanford.edu/%<u></u>7Emwaskom/software/seaborn/</a>><br>
</blockquote>
<br>
You have to create those packages from scratch.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Ideally, the collection should be available on <a href="http://softwarecollections.org" target="_blank">softwarecollections.org</a> <<a href="http://softwarecollections.org" target="_blank">http://softwarecollections.<u></u>org</a>>, so I could give<div class="">

<br>
admins a couple of commands to install it.<br>
</div></blockquote>
<br>
Once you have srpm, you have to build it in Copr and then import into <a href="http://softwarecollections.org" target="_blank">softwarecollections.org</a>. See:<br>
<a href="https://www.softwarecollections.org/en/docs/add-to-catalogue/" target="_blank">https://www.<u></u>softwarecollections.org/en/<u></u>docs/add-to-catalogue/</a><div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Could you explain the basic workflow. As I understand, I whould have a collecton .spec file and then .spec files for<br>
packages. To build them, should the spec files be located in ~/rpmbuild/SOURCES? Why then<br>
<a href="https://git.centos.org/summary/?r=rpms/python33-numpy.git" target="_blank">https://git.centos.org/<u></u>summary/?r=rpms/python33-<u></u>numpy.git</a> is a dedicated repository? How can I rebuild that package?<br>


</blockquote>
<br></div>
See<br>
<a href="https://git.centos.org/summary/centpkg.git" target="_blank">https://git.centos.org/<u></u>summary/centpkg.git</a><br>
Then<br>
centpkg clone python33-numpy<br>
cd python33-numpy<br>
git checkout c7<br>
yum install python33-build scl-utils-build<br>
centpkg local<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As you see, I'm very new to building and creating RPMs.<br>
</blockquote>
<br></div>
Then I would suggest you to start with simpler packages.<br>
  <a href="http://www.rpm.org/max-rpm/ch-rpm-build.html" target="_blank">http://www.rpm.org/max-rpm/ch-<u></u>rpm-build.html</a><br>
This is good start point ^<span class=""><font color="#888888"><br>
<br>
<br>
-- <br>
Miroslav Suchy, RHCE, RHCDS<br>
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys<br>
</font></span></blockquote></div><br></div></div></div>