Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ca1faa68
Commit
ca1faa68
authored
Oct 26, 2016
by
Christian Brauner
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1252 from stgraber/master
Fix environment before importing setuptools
parents
ac94fda6
c223a536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
setup.py
src/python-lxc/setup.py
+4
-4
No files found.
src/python-lxc/setup.py
View file @
ca1faa68
...
...
@@ -25,10 +25,7 @@
import
os
import
subprocess
from
setuptools
import
setup
,
Extension
from
setuptools.command.build_ext
import
build_ext
as
BuildExtCommand
# Fix build when PIE is enabled
# Fix build when PIE is enabled (must run before setuptools import)
for
var
in
(
"LDFLAGS"
,
"CFLAGS"
):
current
=
os
.
environ
.
get
(
var
,
None
)
if
not
current
:
...
...
@@ -44,6 +41,9 @@ for var in ("LDFLAGS", "CFLAGS"):
os
.
environ
[
var
]
=
" "
.
join
(
new
)
from
setuptools
import
setup
,
Extension
from
setuptools.command.build_ext
import
build_ext
as
BuildExtCommand
class
LxcBuildExtCommand
(
BuildExtCommand
):
user_options
=
BuildExtCommand
.
user_options
+
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment