These are chat archives for astropy/astropy

2nd
Jun 2014
Christoph Deil
@cdeil
Jun 02 2014 07:44
Does anyone know how to document module-level variables so that they are picked up by Sphinx?
I tried both of the methods mentioned at http://sphinx-doc.org/latest/ext/example_numpy.html and they didn't work.
Francesco Biscani
@bluescarni
Jun 02 2014 11:17
@cdeil : have you tried this syntax: #: A nice doc string. foo = 123
there is supposed to be a newline in there
#: A nice doc string.
foo = 123
Stuart Mumford
@Cadair
Jun 02 2014 14:51
@astrofrog you around?
or for that matter anyone with any distutils like wizardry qualifications
I am playing with astropy_helpers and it blowing up in my face
Stuart Mumford
@Cadair
Jun 02 2014 15:04
:@
Thomas Robitaille
@astrofrog
Jun 02 2014 15:10
What appears to be the issue?
Stuart Mumford
@Cadair
Jun 02 2014 15:10
yay!
Traceback (most recent call last):
File "setup.py", line 122, in <module>
**package_info
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/install.py", line 65, in run
self.do_egg_install()
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/install.py", line 107, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 157, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 143, in call_command
self.run_command(cmdname)
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 8, in run
self.build()
File "/usr/lib64/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/stuart/GitHub/sunpy/astropy_helpers/astropy_helpers/setup_helpers.py", line 543, in run
orig_run(self)
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 49, in run
_build_ext.run(self)
File "/usr/lib64/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/lib64/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/home/stuart/.virtualenvs/sunpy_dist/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 179, in build_extension
if ext._needs_stub:
AttributeError: Extension instance has no attribute '_needs_stub'
toss
that was totally supposed to be a pastebin link
see look there it is!
Thomas Robitaille
@astrofrog
Jun 02 2014 15:11
So the setup.py is verbatim the one from package-template?
Stuart Mumford
@Cadair
Jun 02 2014 15:11
pretty much yeah
Thomas Robitaille
@astrofrog
Jun 02 2014 15:11
can you point me to the repo where you are doing this?
Stuart Mumford
@Cadair
Jun 02 2014 15:12
yeah one sec, I am just pushing updates
Thomas Robitaille
@astrofrog
Jun 02 2014 15:13
what about conf.py, is it exactly the same as the one from package-template
Stuart Mumford
@Cadair
Jun 02 2014 15:13
ah
no
what is conf.py?
sphinx conf?
Thomas Robitaille
@astrofrog
Jun 02 2014 15:17
yes
ignore me
not relevant here
please hold :musical_note:
@Cadair - it works for me!
Stuart Mumford
@Cadair
Jun 02 2014 15:20
whhhattt
Thomas Robitaille
@astrofrog
Jun 02 2014 15:20
have you tried a clean checkout
Stuart Mumford
@Cadair
Jun 02 2014 15:20
yeah I just git clean -fxd 'ed
and I still get it
hang on, let me start a fresh in a new virtualenv
that reminds me, it dosen't want to install numpy if I start from clean
Thomas Robitaille
@astrofrog
Jun 02 2014 15:22
virtualenv?
Stuart Mumford
@Cadair
Jun 02 2014 15:22
yeah
Thomas Robitaille
@astrofrog
Jun 02 2014 15:22
if you do pip install numpy?
or when you install astropy?
Stuart Mumford
@Cadair
Jun 02 2014 15:22
if I do pip install numpy first it's ok
Thomas Robitaille
@astrofrog
Jun 02 2014 15:23
the astropy_helpers branch of sunpy still works for me
checking the clean/numpy thing
Stuart Mumford
@Cadair
Jun 02 2014 15:25
will I need the dev version of astropy for this to work?
Thomas Robitaille
@astrofrog
Jun 02 2014 15:25
well it's using 0767e063f6b302dc156d21942e2cc8bf1c1fe387 currently which should be fine
Stuart Mumford
@Cadair
Jun 02 2014 15:25
I mean if I pip install 0.3.2 will it work
in my clean virtualenv
Thomas Robitaille
@astrofrog
Jun 02 2014 15:25
hmm
I think it should
Stuart Mumford
@Cadair
Jun 02 2014 15:26
I will install from git
see if it fixes it
I do not understand this
bingo
Thomas Robitaille
@astrofrog
Jun 02 2014 15:29
what is happening?
Stuart Mumford
@Cadair
Jun 02 2014 15:29
it seems that it fails with not master
Thomas Robitaille
@astrofrog
Jun 02 2014 15:30
ok
so you need to install astropy to be able to install sunpy?
Stuart Mumford
@Cadair
Jun 02 2014 15:30
well currently you need to be able to install the git version of astropy
Thomas Robitaille
@astrofrog
Jun 02 2014 15:30
weird
Stuart Mumford
@Cadair
Jun 02 2014 15:30
seeing how pip will default to 0.3.2
which seems to break it
Thomas Robitaille
@astrofrog
Jun 02 2014 15:31
strange
Christoph Deil
@cdeil
Jun 02 2014 15:32
@astrofrog Can you update the astropy_helpers submodule commit pointer in spectral-cube? I'm seeing this issue that was fixed last week: astropy/astropy-helpers#26
Thomas Robitaille
@astrofrog
Jun 02 2014 15:34
ok, will do
Christoph Deil
@cdeil
Jun 02 2014 15:34
Thanks!
Thomas Robitaille
@astrofrog
Jun 02 2014 15:34
gtg for now, back later @cdeil and @Cadair
Stuart Mumford
@Cadair
Jun 02 2014 15:34
thanks @astrofrog
Stuart Mumford
@Cadair
Jun 02 2014 16:22
I remember someone having this issue: