ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Пропустить проверку синтаксиса в python
@ 2020-12-13  8:11 Антон Мидюков
  0 siblings, 0 replies; only message in thread
From: Антон Мидюков @ 2020-12-13  8:11 UTC (permalink / raw)
  To: ALT Devel discussion list

Здравствуйте

При сборке получаю ошибку:

python3.req: ERROR: /usr/src/tmp/beremiz-buildroot/usr/lib/python3/site-packages/beremiz/bacnet/web_settings.py: invalid syntax (<string>, line 297)
Traceback (most recent call last):
  File "/usr/lib/rpm/python3.req.py", line 286, in <module>
    lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1)
  File "<string>", line 297
    def _runtime_bacnet_websettings_%(location_str)s_init():
                                    ^
SyntaxError: invalid syntax
find-requires: ERROR: /usr/lib/rpm/python3.req failed
error: /bin/sh failed
error: Failed to find Requires

Но на самом деле так и задумано:

# location_str is replaced by extension's value in CTNGenerateC call
def _runtime_bacnet_websettings_%(location_str)s_init():

Т.е. при сборке программы для программного PLC этот макрос раскрывается генератором.

Как можно пропустить эту ошибку?

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-13  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13  8:11 [devel] Пропустить проверку синтаксиса в python Антон Мидюков

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git