[OpenStack-docs] Tox on Docs, Docs on Tox
APlimpton
aplimpton at gmail.com
Tue Jul 7 22:52:09 UTC 2015
Hi Randy,
Yes, seeing your earlier post about this is what made me think the
instructions might be missing some install instructions (turns out they
were buried further down). I moved them up and tested on Ubuntu and it was
finally able to complete successfully. Hurrah!
What worked (for Ubuntu):
**General prerequisites **
git git-review
**Tox prerequisites **
Ubuntu
sudo apt-get install gcc gettext python-dev libxml2-dev libxslt1-dev
zlib1g-dev
RHEL/CentOS
sudo yum install gcc python-devel libxml2-devel libxslt-devel
then install tox and run the tox commands.
I'm going to test RHEL/CentOS next to confirm but it looks like this list
is shorter for what needs to be installed and gets everything up and
running for the docs.
Thanks being tenacious and finding ways to make things work!
Amanda
On Tue, Jul 7, 2015 at 10:34 AM, <Randy_Perryman at dell.com> wrote:
> *Dell - Internal Use - Confidential *
>
> Having just finished installing and getting this work.
>
>
>
> I used the instruction on the Ironic page to do this. That worked my
> first try. I did hve to install Python 2.7 and set it as active with
> alternatives
>
>
>
> Here is my post on what I did:
>
>
>
> So after spending many hours of setup and struggle. I spoke with one of
> the local engineers and he said he can build the docs after following the
> instructions at
> http://docs.openstack.org/developer/ironic/dev/dev-quickstart.html.
>
>
>
> So I followed these instructions, then went back to our documentation at
> https://wiki.openstack.org/wiki/Documentation/HowTo#Edit_OpenStack_RST_and.2For_DocBook_documentation
>
> and went to Building Output Locally.
>
>
>
> I can now do a
>
>
>
> tox –e py27 with no errors
>
>
>
> activate my virtual environment
>
>
>
> tox –e docs
>
>
>
> with No errors
>
>
>
> Basics of what I did
>
>
>
> Operating System – CentOS 6.6
>
> python 2.7 (https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz)
>
> setup as an alternative:
>
> alternatives --install /usr/bin/python python /usr/src/Python-2.7.9/python
> 2
>
> alternatives --install /usr/bin/python python /usr/bin/python2.6 1
>
> alternatiives --config python
>
> sudo easy_install nose
>
> pip install virtualenv
>
> pip install setuptools-git
>
> pip install flake8
>
> pip install tox
>
>
>
> > -----Original Message-----
> > From: Jeremy Stanley [mailto:fungi at yuggoth.org]
> > Sent: Monday, July 06, 2015 11:58 AM
> > To: openstack-docs at lists.openstack.org
> > Subject: Re: [OpenStack-docs] Tox on Docs, Docs on Tox
> >
> > On 2015-07-06 09:40:56 -0600 (-0600), Matt Kassawara wrote:
> > > From the note...
> > >
> > > Ubuntu and Debian require the following additional dependencies: gcc,
> > > gettext, python-dev, libxml2-dev, libxslt1-dev, zlib1g-dev
> > >
> > > RHEL and variants including Fedora, openSUSE and SUSE Linux Enterprise
> > > require the following additional dependencies: gcc, python-devel,
> > > libxml2-devel, libxslt-devel
> >
> > Once bindep[1] gets a little more ingrained in our repos (I've got
> > patches underway to integrate it into our testing mechanisms
> > currently), this could be solved by adding an other-requirements.txt
> > file into the repo to which this applies. Its contents would look
> > something like:
> >
> > gcc
> > gettext [platform:dpkg]
> > libxml2-dev [platform:dpkg]
> > libxml2-devel [platform:rpm]
> > libxslt-devel [platform:rpm]
> > libxslt1-dev [platform:dpkg]
> > python-dev [platform:dpkg]
> > python-devel [platform:rpm]
> > zlib1g-dev [platform:dpkg]
> >
> > And then with a corresponding "bindep" env in your tox.ini, your
> > instructions could say to install tox and run `tox -e bindep` to get
> > a list of additional packages you're missing on your platform.
> >
> > [1]
> https://git.openstack.org/cgit/openstack-infra/bindep/tree/README.rst
> > --
> > Jeremy Stanley
> >
> > _______________________________________________
> > OpenStack-docs mailing list
> > OpenStack-docs at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>
> _______________________________________________
> OpenStack-docs mailing list
> OpenStack-docs at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20150707/2a0dd2e3/attachment.html>
More information about the OpenStack-docs
mailing list