<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:31:21 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-1047] Problems installing pfs_utils package</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1047</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;(This is almost a verbatim copy of an email I sent to Craig and Robert some time ago; at that time I couldn&apos;t open issues on JIRA. Please excuse me if I&apos;m filing this in the wrong category ... I&apos;m not yet completely familiar with the internal organization...)&lt;/p&gt;

&lt;p&gt;The packages ets_fiberalloc and ets_shuffle are going to depend on pfs_utils for coordinate conversions in the future. In preparation for that I tried to install the package locally. This requires scons, which was not a problem to install.&lt;br/&gt;
It also depends in lsst.sconsUtils, which I cloned from Github. Here the trouble started. The &quot;scons&quot; command for lsst.sconsUtils insists on calling &quot;pytest&quot; (hardwired), which is called &quot;pytest-3&quot; on my machine. I managed to adjust this, but now I get&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
running global pytest...
ERROR: usage: pytest-3 [options] [file_or_dir] [file_or_dir] [...]
pytest-3: error: unrecognized arguments:
--session2file=tests/.tests/pytest-sconsUtils.xml.out
 inifile: None
 rootdir: /home/martin/codes/sconsUtils
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Do you have any advice how to proceed?&lt;/p&gt;</description>
                <environment></environment>
        <key id="14660">INSTRM-1047</key>
            <summary>Problems installing pfs_utils package</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Martin.Reinecke">Martin Reinecke</reporter>
                        <labels>
                    </labels>
                <created>Sat, 8 Aug 2020 09:04:27 +0000</created>
                <updated>Tue, 7 Sep 2021 14:58:36 +0000</updated>
                            <resolved>Tue, 7 Sep 2021 14:58:36 +0000</resolved>
                                                                    <component>pfs_utils</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                <comments>
                            <comment id="17520" author="cloomis" created="Mon, 10 Aug 2020 15:01:25 +0000"  >&lt;p&gt;So what do we do about this PITA? As a reminder, &lt;tt&gt;pfs_utils&lt;/tt&gt; is the package dedicated to code shared between the ICS and DRP worlds (fiber id mappings, core coordinate transforms, etc), and was supposed to not require any &lt;em&gt;other&lt;/em&gt;  ICS or DRP packages. &lt;/p&gt;

&lt;p&gt;But for DRP (scons) installation and CI testing, &lt;tt&gt;sconsUtils&lt;/tt&gt; has been added, which drags in a bunch of DRP infrastructure. Instead of being a trivial to install standalone package, it forces everyone to install some part of the Rubin universe. Subaru ICS, MPA, ASRD are the &lt;/p&gt;

&lt;p&gt;So pull sconsUtils out? Add it and its friends as a requirement? The LSST requirement on some utterly antique &lt;tt&gt;pytest&lt;/tt&gt; and thus &lt;tt&gt;attrs&lt;/tt&gt; has already given us (ICS) trouble; with my ICS hat on I am very disinclined to buy into any more dependencies.&lt;/p&gt;</comment>
                            <comment id="17521" author="martin.reinecke" created="Mon, 10 Aug 2020 15:11:05 +0000"  >&lt;p&gt;If it helps, this is not really urgent on my side. I currently just copy the Python files to a place where the interpreter finds them.&lt;/p&gt;

&lt;p&gt;Perhaps it would already be sufficient to add a very basic &lt;tt&gt;setup.py&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="17522" author="cloomis" created="Mon, 10 Aug 2020 15:16:52 +0000"  >&lt;p&gt;Agreed on adding basic setup.py. &lt;/p&gt;</comment>
                            <comment id="18088" author="martin.reinecke" created="Mon, 30 Nov 2020 08:38:11 +0000"  >&lt;p&gt;I&apos;m encountering the same problem with &quot;datamodel&quot;. It would be really great if this issue could be addressed for all concerned packages.&lt;/p&gt;

&lt;p&gt;In the meantime I&apos;ll have to copy Python files around by hand...&lt;/p&gt;</comment>
                            <comment id="18089" author="hassan" created="Mon, 30 Nov 2020 12:21:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=Martin.Reinecke&quot; class=&quot;user-hover&quot; rel=&quot;Martin.Reinecke&quot;&gt;Martin Reinecke&lt;/a&gt;: Can you provide the most recent steps you made, and a copy of the error message you saw please?&lt;/p&gt;</comment>
                            <comment id="18090" author="martin.reinecke" created="Mon, 30 Nov 2020 13:12:22 +0000"  >&lt;p&gt;It&apos;s not so much a matter of commands failing, but rather of no well-defined installation procedure existing.&lt;/p&gt;

&lt;p&gt;As I mentioned in the first post, I&apos;m not aware of any document describing how these packages should be installed. I tried finding out by myself, but it requires manual installation of a not very common build tool (scons), then additionally cloning lsst.sconsUtils (also manually). Last time I tried, the package didn&apos;t install even then, but that&apos;s not really the essence of this issue.&lt;/p&gt;

&lt;p&gt;The proposed solution (add a simple setup.py script) seems to have general agreement, but it&apos;s not implemented yet.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="18097" author="cloomis" created="Tue, 1 Dec 2020 15:54:52 +0000"  >&lt;p&gt;I will back off the setup.py suggestion and push for using requiring basic &lt;tt&gt;eups&lt;/tt&gt; instead. Basically, all the PFS packages (both ICS and DRP) use a package directory tree which does not work well with the python setuptool/distutils/pkg_resources policies. Specifically, we expect a top-level directory with &lt;tt&gt;bin/, etc/, docs/, python/pfs/utils/, data/, examples/&lt;/tt&gt;, etc. in it, and use our own mechanism to adjust PYTHONPATH and PATH to match. The builtin tools put the &lt;em&gt;content&lt;/em&gt; of our &lt;tt&gt;python&lt;/tt&gt; directory into &lt;tt&gt;...../site-packages/&lt;/tt&gt;, merging all pfs packages into that, and leave PYTHONPATH alone. Extra files and directories are put in other, non-site-packages directories.&lt;/p&gt;

&lt;p&gt;This matters for pfs_utils, which includes some stable but essential data files in &lt;tt&gt;data/fiberids/&lt;/tt&gt;, and which are found by using &lt;tt&gt;eups&lt;/tt&gt; routines.&lt;/p&gt;

&lt;p&gt;One could certainly argue that what we do is not what one would start with in 2020, but we started much earlier and this is what we have. We can semi-cheat and get something close to what PFS does, but not without depending on undocumented behavior. Using bare-bones eups (&quot;setup -r .&quot;) seems like a not-insane middle ground.&lt;/p&gt;

&lt;p&gt;OK, so &lt;tt&gt;eups&lt;/tt&gt;. I think there are some basic intro docs both in the Rubin/HSC and the PFS worlds. Someone might have a decent pointer....&lt;/p&gt;</comment>
                            <comment id="18850" author="martin.reinecke" created="Mon, 15 Mar 2021 09:00:41 +0000"  >&lt;p&gt;I have added a skeleton `setup.py` file on the tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1047&quot; title=&quot;Problems installing pfs_utils package&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1047&quot;&gt;&lt;del&gt;INSTRM-1047&lt;/del&gt;&lt;/a&gt; branch of the datamodel repo, which does the trick for me. I also see that &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt; has been working on this for pfs_utils, but I don&apos;t manage to get his solution to work for me yet.&lt;/p&gt;

&lt;p&gt;If wanted, I can provide a simple setup.py script for pfs_utils as well. Please let me know!&lt;/p&gt;</comment>
                            <comment id="18858" author="martin.reinecke" created="Mon, 15 Mar 2021 15:28:03 +0000"  >&lt;p&gt;I took the liberty of pushing a setup.py file to the tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/INSTRM-1047&quot; title=&quot;Problems installing pfs_utils package&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INSTRM-1047&quot;&gt;&lt;del&gt;INSTRM-1047&lt;/del&gt;&lt;/a&gt; branch of the pfs_utils repository. Please feel free to remove it again if a different sort of solution is desired!&lt;/p&gt;</comment>
                            <comment id="21898" author="rhl" created="Mon, 6 Sep 2021 13:52:15 +0000"  >&lt;p&gt;What still needs to happen to close this ticket and merge the changes?&lt;/p&gt;</comment>
                            <comment id="21899" author="price" created="Mon, 6 Sep 2021 18:11:01 +0000"  >&lt;p&gt;I merged datamodel and pfs_utils.&lt;/p&gt;</comment>
                            <comment id="21903" author="martin.reinecke" created="Tue, 7 Sep 2021 08:29:01 +0000"  >&lt;p&gt;Thank you!&lt;/p&gt;</comment>
                            <comment id="21905" author="rhl" created="Tue, 7 Sep 2021 14:54:38 +0000"  >&lt;p&gt;Can we close this ticket?&lt;/p&gt;</comment>
                            <comment id="21906" author="martin.reinecke" created="Tue, 7 Sep 2021 14:56:42 +0000"  >&lt;p&gt;I&apos;d say yes. If anything else turns up, we can open another one.&lt;/p&gt;</comment>
                            <comment id="21907" author="martin.reinecke" created="Tue, 7 Sep 2021 14:57:59 +0000"  >&lt;p&gt;Do I have to do special Jira magic so that it can be closed?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzs2fk:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>