Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 594716 Details for
Bug 553762
dev-python/pip: Disable running as root
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make Portage itself pip-installable
0001-Patch-setup.py-to-enable-bdist-wheel-support.patch (text/plain), 2.47 KB, created by
Kenneth G. Strawn
on 2019-11-01 05:51:08 UTC
(
hide
)
Description:
Make Portage itself pip-installable
Filename:
MIME Type:
Creator:
Kenneth G. Strawn
Created:
2019-11-01 05:51:08 UTC
Size:
2.47 KB
patch
obsolete
>From 52e589f2195c8994695872e6293895bb60d8d574 Mon Sep 17 00:00:00 2001 >From: Kenny Strawn <Kenny.Strawn@gmail.com> >Date: Thu, 31 Oct 2019 22:45:51 -0700 >Subject: [PATCH] Patch setup.py to enable 'bdist-wheel' support > >--- > setup.py | 60 +++++++++++++++++++++++++++++++++++++------------------- > 1 file changed, 40 insertions(+), 20 deletions(-) > >diff --git a/setup.py b/setup.py >index eee09e8bd..e03837b7a 100755 >--- a/setup.py >+++ b/setup.py >@@ -25,6 +25,7 @@ import os > import os.path > import platform > import re >+import setuptools > import subprocess > import sys > >@@ -46,21 +47,43 @@ x_scripts = { > ], > } > >-# Dictionary custom modules written in C/C++ here. The structure is >-# key = module name >-# value = list of C/C++ source code, path relative to top source directory >-x_c_helpers = { >- 'portage.util.libc' : [ >- 'src/portage_util_libc.c', >- ], >-} >- >-if platform.system() == 'Linux': >- x_c_helpers.update({ >- 'portage.util.file_copy.reflink_linux': [ >- 'src/portage_util_file_copy_reflink_linux.c', >- ], >- }) >+# Disable helper modules on PyPI build >+# >+#def x_c_helpers(): >+# if platform.system() == 'Linux': >+# ext_modules = [ >+# Extension( >+# name='portage.util.libc', >+# sources=[ 'src/portage_util_libc.c' ], >+# extra_compile_args=[ >+# '-D_FILE_OFFSET_BITS=64', >+# '-D_LARGEFILE_SOURCE', >+# '-D_LARGEFILE64_SOURCE' >+# ] >+# ), >+# Extension( >+# name='portage.util.file_copy.reflink_linux', >+# sources=[ 'src/portage_util_libc.c' ], >+# extra_compile_args=[ >+# '-D_FILE_OFFSET_BITS=64', >+# '-D_LARGEFILE_SOURCE', >+# '-D_LARGEFILE64_SOURCE' >+# ] >+# ) >+# ], >+# else: >+# ext_modules = [ >+# Extension( >+# name='portage.util.libc', >+# sources='src/portage_util_libc.c', >+# extra_compile_args=[ >+# '-D_FILE_OFFSET_BITS=64', >+# '-D_LARGEFILE_SOURCE', >+# '-D_LARGEFILE64_SOURCE' >+# ] >+# ) >+# ] >+# return ext_modules > > > class x_build(build): >@@ -660,7 +683,7 @@ class build_ext(_build_ext): > _build_ext.run(self) > > >-setup( >+setuptools.setup( > name = 'portage', > version = '2.3.78', > url = 'https://wiki.gentoo.org/wiki/Project:Portage', >@@ -683,10 +706,7 @@ setup( > ['$sysconfdir/portage/repo.postsync.d', ['cnf/repo.postsync.d/example']], > ], > >- ext_modules = [Extension(name=n, sources=m, >- extra_compile_args=['-D_FILE_OFFSET_BITS=64', >- '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE']) >- for n, m in x_c_helpers.items()], >+# ext_modules = x_c_helpers(), > > cmdclass = { > 'build': x_build, >-- >2.23.0 >
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 553762
:
415590
|
424606
|
424608
| 594716