all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Vijayalakshmi Vedantham <vijimay12@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Internship on Improve the user experience for the "guix package" command line tool (Outreachy)
Date: Tue, 20 Mar 2018 16:54:32 +0100	[thread overview]
Message-ID: <87h8pad9on.fsf@elephly.net> (raw)
In-Reply-To: <CAD8c3_duj40tbxUkjvuKZvrEN126dV_g=RPMMntSKHoT83zqnA@mail.gmail.com>


Hi Vijayalakshmi,

> I'm really sorry about the effort you had to put into this patch. I'll try
> not to do it again.

Oh, you misunderstood.  This kind of reworking of patches is very
normal.  It happens all the time and is a normal part of patch
review.

Some of these problems, however, could have been found before sending
the patch.  It is good to first try to actually build the package.  This
can give you error messages that can guide your way to a working package
definition.

> I had to append “.zip” because Pypi didn’t have a “.tar.gz” file for the
>> sources, so the uri
>> field now is:
>>
>>    (pypi-uri "logwrap" version ".zip")
>>
>
> Did you do this because only .zip is available here (
> https://pypi.python.org/pypi/logwrap#downloads)?

That’s correct.

>> I also noticed that the sources include files that were generated with
>> Cython.  Instead of reusing those, we build them from source.  Luckily
>> all we have to do in this case is to add “python-cython” to the
>> native-inputs field.
>>
>
> Can I know how you knew this?

I looked at the included “setup.py” as I was trying to understand how
the tests are supposed to be run.  There I stumbled upon a check for
Cython, which is optional.  Usually, this means that the archive
includes generated files and it will only regenerate them from source if
Cython is found.  By adding “python-cython” to the native-inputs I make
sure that Cython is found when the package is built.

>> Finally, the tests. At first the tests wouldn’t run.  So I looked up the
>> error message online and found that I need to use “python-pytest-runner”
>> in addition to “python-pytest”.  This allows the tests to run up to a
>> point until it wants to do coverage tests.  For those I needed to add
>> “python-pytest-cov”.
>>
>> I changed the description, because I think it wasn’t quite correct.
>>
>
> Again, I'm sorry.

No worries!

>      Have you been able to build Guix already and try building the package
> using “./pre-inst-env guix build”?
>
> No, I tried last night but I faced some issues, I'll try again tonight.

You’re welcome to share your progress and the exact error messages (text
is better than screenshots) here if you feel stuck.  Being able to build
packages with your modified version of Guix is pretty important for all
development work in Guix.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2018-03-21 23:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAD8c3_e9+N2AEcR+fYs_bzsyLM9i85Fv1rT3P7jaPMKV+ihWog@mail.gmail.com>
     [not found] ` <CAD8c3_dj0sUOtb=kU4tCtLH1LesOQmkdSqDO+awvUFB8Q+8Q2A@mail.gmail.com>
     [not found]   ` <87fu5pch36.fsf@elephly.net>
     [not found]     ` <CAD8c3_c8hwg2pLdKvaPKyPzy+bgLVGekyF2vGVWFW-Fb-BX1ww@mail.gmail.com>
     [not found]       ` <87h8pfy56s.fsf@elephly.net>
     [not found]         ` <CAD8c3_foX-c-+j3jfkLHG1VcnL2u7s_ixj550XcU1Ch-Fbqtjg@mail.gmail.com>
     [not found]           ` <87tvtdthda.fsf@elephly.net>
     [not found]             ` <CAD8c3_fD241AogQiaQTo2g-vXcwrWjt9FhAejMh57ZB+cBmKKQ@mail.gmail.com>
     [not found]               ` <87k1u8uccr.fsf@elephly.net>
2018-03-19 16:58                 ` Internship on Improve the user experience for the "guix package" command line tool (Outreachy) Vijayalakshmi Vedantham
2018-03-19 20:27                   ` Ricardo Wurmus
2018-03-20 14:44                   ` Ricardo Wurmus
2018-03-20 15:15                     ` Vijayalakshmi Vedantham
2018-03-20 15:54                       ` Ricardo Wurmus [this message]
2018-03-20 18:34                       ` Björn Höfling
2018-03-21  8:35                       ` Efraim Flashner
2018-03-21 17:03                         ` Vijayalakshmi Vedantham
2018-03-21 19:44                           ` Gábor Boskovits

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8pad9on.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=vijimay12@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.