Skip to content

Commit ff3c3ec

Browse files
committed
Fixing build.
1 parent 80615ed commit ff3c3ec

4 files changed

Lines changed: 23 additions & 87 deletions

File tree

meson.build

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,13 @@ if host_machine.system() == 'windows'
141141

142142
endif
143143

144-
145-
shared_library(
146-
'meson.project_name()',
144+
import('python').find_installation().extension_module(
145+
meson.project_name(),
147146
sources,
148147
install: true,
149148
dependencies: [
150149
ipc3270,
151-
dependency(
152-
'python3',
153-
required: true,
154-
),
150+
dependency('python3', required:true, method : 'pkg-config'),
155151
],
156152
include_directories: includes_dir
157153
)

py3270.cbp

Lines changed: 0 additions & 79 deletions
This file was deleted.

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[build-system]
2+
build-backend = 'mesonpy'
3+
requires = ['meson-python']
4+
5+
[tool.meson-python.args]
6+
setup = ['--vsenv']
7+
install = ['--tags=python']
8+
9+
[project]
10+
name = 'pytn3270'
11+
version = '1.2.8'
12+
description = 'Python bindings for lib3270/pw3270'
13+
readme = 'README.md'
14+
requires-python = '>=3.8'
15+
license = { file = 'LICENSE' }
16+
authors = [
17+
{ name = 'Perry Werneck', email = 'perry.werneck@gmail.com' },
18+
]
19+

rpm/python-tn3270.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Summary: Python bindings for lib3270/pw3270
2323
Name: python-tn3270
24-
Version: 5.5
24+
Version: 5.5.0
2525
Release: 0
2626
License: GPL-2.0
2727
Source: %{name}-%{version}.tar.xz

0 commit comments

Comments
 (0)