Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing a package sometimes builds UNKNOWN #43

Open
itkovian opened this issue Jun 10, 2016 · 8 comments
Open

Installing a package sometimes builds UNKNOWN #43

itkovian opened this issue Jun 10, 2016 · 8 comments

Comments

@itkovian
Copy link
Member

  • using 0.10.6
  • no package name in setup.py
  • builds UNKNOWN-xxx package
@itkovian
Copy link
Member Author

See for example installing vsc-accountpage-clients version 0.7.2

@JensTimmerman
Copy link
Contributor

can you please give a bit more information, e.g. the build log?

@JensTimmerman
Copy link
Contributor

since this works for me
INFO: moving build/bdist.linux-x86_64/rpm/SRPMS/vsc-accountpage-clients-0.7.2-1.src.rpm -> dist
INFO: moving build/bdist.linux-x86_64/rpm/RPMS/noarch/vsc-accountpage-clients-0.7.2-1.noarch.rpm -> dist

possibly your upstream repo is wrong? do the test pass when you run python setup.py test?

@JensTimmerman
Copy link
Contributor

especially, check for this in your build log

INFO: found match url git@github.com:hpcugent/vsc-accountpage-clients in /home/jens/workspace/vsc-accountpage-clients/.git/config
INFO: found match name vsc-accountpage-clients in /home/jens/workspace/vsc-accountpage-clients/.git/config
INFO: Removing None download_url
INFO: get_name_url returns {'url': 'https://github.com/hpcugent/vsc-accountpage-clients', 'name': 'vsc-accountpage-clients'}

@itkovian
Copy link
Member Author

python setup.py test

<snip>
INFO: Diff header vs gen_header
  # -*- coding: latin-1 -*-
  #
  # Copyright 2015-2016 Ghent University
  #
- # This file is part of vsc-accountpage-clients,
+ # This file is part of ,
  # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
  # with support of Ghent University (http://ugent.be/hpc),
  # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
  # the Flemish Research Foundation (FWO) (http://www.fwo.be/en)
  # and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
  #
  # https://github.com/hpcugent/vsc-accountpage-clients
  #
- # vsc-accountpage-clients is free software: you can redistribute it and/or modify
?   -----------------------
+ #  is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Library General Public License as
  # published by the Free Software Foundation, either version 2 of
  # the License, or (at your option) any later version.
  #
- # vsc-accountpage-clients is distributed in the hope that it will be useful,
?   -----------------------
+ #  is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  # GNU Library General Public License for more details.
  #
  # You should have received a copy of the GNU Library General Public License
- # along with vsc-accountpage-clients. If not, see <http://www.gnu.org/licenses/>.
?              -----------------------
+ # along with . If not, see <http://www.gnu.org/licenses/>.

FAIL
Try to import each python script as a module ... INFO: run_tests from base dir /root/vsc-accountpage-clients (using executable /root/vsc-accountpage-clients/setup.py)
INFO: generated list: []
INFO: generated scripts list: []
ok
Run prospector.run.main, but apply white/blacklists to the results ... INFO: run_tests from base dir /root/vsc-accountpage-clients (using executable /root/vsc-accountpage-clients/setup.py)
INFO: No protector tests are ran on py26 or older.
ok
test_account (test.wrappers.TestWrapper) ... ok
test_homeonscratch (test.wrappers.TestWrapper) ... ok

======================================================================
FAIL: Try to import each namespace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/vsc/lib/python2.6/site-packages/vsc_install-0.10.6-py2.6.egg/vsc/install/commontest.py", line 135, in test_import_packages
    msg='check_header of %s' % fn)
AssertionError: check_header of lib/vsc/__init__.py

----------------------------------------------------------------------
Ran 6 tests in 0.046s

FAILED (failures=1)

@itkovian
Copy link
Member Author

I'm on 313bde7bfa

@JensTimmerman
Copy link
Contributor

can you post your build log?

1 similar comment
@JensTimmerman
Copy link
Contributor

can you post your build log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants