FreeBSD Bugzilla – Attachment 234552 Details for
Bug 241952
devel/py-pycparser: 2.19 updates/recompiles c_ast.py after installation (at runtime)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
experiment patch
patch.diff (text/plain), 1.73 KB, created by
Tatsuki Makino
on 2022-06-08 11:58:25 UTC
(
hide
)
Description:
experiment patch
Filename:
MIME Type:
Creator:
Tatsuki Makino
Created:
2022-06-08 11:58:25 UTC
Size:
1.73 KB
patch
obsolete
>diff --git a/devel/py-pycparser/files/patch-setup.py b/devel/py-pycparser/files/patch-setup.py >new file mode 100644 >index 0000000000..befd581484 >--- /dev/null >+++ b/devel/py-pycparser/files/patch-setup.py >@@ -0,0 +1,42 @@ >+--- setup.py.orig 2021-11-06 12:35:55 UTC >++++ setup.py >+@@ -1,11 +1,11 @@ >+ import os, sys >+ try: >+ from setuptools import setup >+- from setuptools.command.install import install as _install >++ from setuptools.command.install_lib import install_lib as _install_lib >+ from setuptools.command.sdist import sdist as _sdist >+ except ImportError: >+ from distutils.core import setup >+- from distutils.command.install import install as _install >++ from distutils.command.install_lib import install_lib as _install_lib >+ from distutils.command.sdist import sdist as _sdist >+ >+ >+@@ -18,11 +18,13 @@ def _run_build_tables(dir): >+ cwd=os.path.join(dir, 'pycparser')) >+ >+ >+-class install(_install): >+- def run(self): >+- _install.run(self) >+- self.execute(_run_build_tables, (self.install_lib,), >+- msg="Build the lexing/parsing tables") >++class install_lib(_install_lib): >++ def install(self): >++ outfiles = _install_lib.install(self) >++ if outfiles is not None: >++ self.execute(_run_build_tables, (self.install_dir,), >++ msg="Build the lexing/parsing tables") >++ return outfiles >+ >+ >+ class sdist(_sdist): >+@@ -66,5 +68,5 @@ setup( >+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", >+ packages=['pycparser', 'pycparser.ply'], >+ package_data={'pycparser': ['*.cfg']}, >+- cmdclass={'install': install, 'sdist': sdist}, >++ cmdclass={'install_lib': install_lib, 'sdist': sdist}, >+ )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 241952
: 234552