<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
pip is not preffered way for production deployments here. I'll
keep it as last resort (maybe even after adding the libraries into
rh-python36 collection which is bad :))<br>
<br>
But generally, if I want to create a dependent SCL, I obviously
miss some macros or something in the specfile.<br>
<br>
thanks,<br>
Gh.<br>
<br>
<br>
Davis, Daniel (NIH/NLM) [C] wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CY1PR09MB1050DE70B4726B2C1EF813EC893A0@CY1PR09MB1050.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<div>
<div>Jiri, if you mean Python packages, I do it this way (for a
designated owner account):</div>
<div><br>
</div>
<div>scl enable rh-python36 bash</div>
<div>pip install --user lxml</div>
<div><br>
</div>
<div>Above, lxml is an example package.</div>
<div><br>
</div>
<div>Also consider whether you want Python 36 binary extensions
to always be available. You can create a file in
/etc/ld.so.conf.d that does that - SCLs don't do that to be
safe about what else is on the box, but for your own boxes why
not.</div>
<div><br>
</div>
<div>Buried in ansible code, you can see this in action at <a
href="https://GitHub.com/NLM-OCCS/occsab-python"
moz-do-not-send="true">
https://GitHub.com/NLM-OCCS/occsab-python</a></div>
<div><br>
</div>
<div><br>
<br>
Sent with BlackBerry Work (<a class="moz-txt-link-abbreviated" href="http://www.blackberry.com">www.blackberry.com</a>)</div>
<hr style="display:inline-block; width:98%">
<div class="x_quote"><b>From: </b>Jiri Novak
<a class="moz-txt-link-rfc2396E" href="mailto:jiri.novak@ghorland.net"><jiri.novak@ghorland.net></a><br>
<b>Sent: </b>Nov 28, 2017 5:41 AM<br>
<b>To: </b>Stefan Ring <a class="moz-txt-link-rfc2396E" href="mailto:stefanrin@gmail.com"><stefanrin@gmail.com></a><br>
<b>Cc: </b><a class="moz-txt-link-abbreviated" href="mailto:sclorg@redhat.com">sclorg@redhat.com</a><br>
<b>Subject: </b>Re: [scl.org] rh-python36-build alternative
in rhel<br>
<br type="attribution">
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi<br>
<br>
I need to add more libraries to rh-python36, which would
require using<br>
rh-python36-build package and I've been told it is wring and
I should do<br>
my own SCL.<br>
<br>
then I need to make the application use the extended SCL
with added<br>
libraries.<br>
<br>
Just running it agains rh-python36 is not enough because of
missing<br>
dependencies :(<br>
<br>
The specfile should create packages test-python36-build and<br>
test-python36-runtime as a collection that extends
rh-python36<br>
<br>
Gh.<br>
<br>
Stefan Ring wrote:<br>
> On Tue, Nov 28, 2017 at 1:47 PM, Jiri Novak
<a class="moz-txt-link-rfc2396E" href="mailto:jiri.novak@ghorland.net"><jiri.novak@ghorland.net></a> wrote:<br>
>> Hi,<br>
>><br>
>> according to this (<br>
>> <a
href="https://developers.redhat.com/blog/2014/12/04/add-packages-to-python-2-7-software-collection/"
moz-do-not-send="true">
https://developers.redhat.com/blog/2014/12/04/add-packages-to-python-2-7-software-collection/</a><br>
>> ), I'm trying to create my own extension of the
rh-python36, though<br>
>> doesn't build:<br>
>><br>
>> + '[' '%{buildarch}' = noarch ']'<br>
>> + QA_CHECK_RPATHS=1<br>
>> + case "${QA_CHECK_RPATHS:-}" in<br>
>> + /usr/lib/rpm/check-rpaths<br>
>> + /usr/lib/rpm/check-buildroot<br>
>> + '%{rh-python36_os_install_post}'<br>
>> /var/tmp/rpm-tmp.k3bzOV: line 316: fg: no job
control<br>
>> error: Bad exit status from /var/tmp/rpm-tmp.k3bzOV
(%install)<br>
>><br>
>> most probably because the variables are not
expanded?<br>
>> What did I miss? Specfile for refenrence in
attachement.<br>
> What is this spec file? It looks awfully complicated.<br>
><br>
> I'm getting you want to build something against
rh-python36. Why don't<br>
> you take an existing package, let’s say,
rh-python36-python-six, and<br>
> adapt it?<br>
<br>
<br>
</div>
</span></font>
</blockquote>
<br>
</body>
</html>