LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  January 2014

QSERV-L January 2014

Subject:

Re: Some more question about Qserv packaging with eups.

From:

Mario Juric <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Fri, 3 Jan 2014 12:44:37 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (86 lines)

On 1/3/14 7:16 , Fabrice Jammes wrote:
> Hello Mario,
> 
> Thanks for your answer, it's clearer now.
> I agree with you on everything, but I've still got one point to clarify.
> 

...[snip of discussion about SYSPYTHON]...

Fabrice,
	OK, I understand now. I think it's a good solution. Here's how I'd
propose you restructure your patch to implement that idea:

* Rename your @SYSTEM_PYTHON@ macro to @EUPS_PYTHON@

* Add an option '--with-python' to configure.ac, which will set a
  variable EUPS_PYTHON and make it default to /usr/bin/python when not
  given. That way, when the user installs eups they're guaranteed
  to pick up the system python, or they're *forced* to be explicit
  about which one they want used.

* Then, use this value to expand your the @EUPS_PYTHON@ macros on
  various hash-bang (#!) lines.

* Also, have EUPS export EUPS_PYTHON environment variable whenever it
  is setup. You'll need to modify both the bin/setups.* scripts, and
  ups/eups.table.in (add an 'envSet(EUPS_PYTHON, @SYSTEM_PYTHON@)' to
  the latter), and expand it as with the makefiles. This allows one to
  query which Python is EUPS using.

The logic behind this is that EUPS will always default to system python
(/usr/bin/python). If the user wants something different, they have to
be _explicit_ about it. And if someone wants to distribute EUPS via eups
(say, using eupspkg scripts), they'd configure it as:

  CONFIGURE_OPTIONS='--prefix=$PREFIX --with-python=$EUPS_PYTHON'

which would ensure the new EUPS inherits the old EUPS' python.

What do you (and Robert!) think?

PS: An alternative to the third bullet is to add a new verb to EUPS,
say, 'eups python' (or, better, 'eups show python'), which would return
the interpreter that EUPS is using (basically, just 'print
sys.executable'). Another alternative is to a new script to bin/
directory, named (say) 'eups_python':

	cat eups_python
	#!@EUPS_PYTHON@
	import sys
	print sys.executable

I don't have a strong opinion which one of these three is best (the
middle one is probably most work). Probably the original one.

- M.

> 
> Removing "-S" is an other solution which works well in this precise case
> (i.e. virtualenv/eups), but I think the first one is more general, and
> may solve more compatibility problems.
> Furthermore, for now, I can't see any drawbacks in this solution.
> 

I agree with your solution, but I'm nevertheless uneasy about using
blunt tools (-S) unless there's no other way. As you've found out with
virtualenv, there are good reasons why site-specific imports shouldn't
be disabled.

> 
> P.S. : i've merged this minor feature with eupspkg (using last version
> of https://github.com/RobertLuptonTheGood/eups), and then try to launch
> qserv install procedure prototype. And, good news, it works successfully ;-)

Good to hear that!
-- 
Mario Juric,
Data Mgmt. Project Scientist, Large Synoptic Survey Telescope
Web : http://research.majuric.org     Phone : +1 617 744 9003

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use