-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Netifaces #239
[WIP] Netifaces #239
Conversation
because of the issues this caused
@cbenhagen @rnixx same issues for pil, I had to comment out the changes to get pil installation to work again.2 |
@cbenhagen Without unpacking setuptools and removing the pth linking, I got errors when trying to install other recipes via hostpython depending on setuptools, like https://github.com/rnixx/kivy-ios/blob/twisted_recipe/recipes/txaio/__init__.py For some reason the pth file was not resolved properly. On the other hand I am wondering why an extracted setuptools causes problems in your case. Did you run host_setuptools recipe on an existing hostpython or a fresh installation? |
Is this the error you get?
Full log here: https://gist.github.com/cbenhagen/d2d5024716f26fd8e7101dec47bb7ac4 |
I ran this on an existing hostpython. But this should not matter at all and if it does we should open an issue for this. |
Running your six recipe with subprocess works however: from os.path import join
from toolchain import PythonRecipe
from toolchain import shprint
import os
import sh
import subprocess
class SixRecipe(PythonRecipe):
version = "1.10.0"
url = (
"https://pypi.python.org/packages/b3/b2/"
"238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/"
"six-{version}.tar.gz"
)
depends = ["python"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
pythonpath = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = pythonpath
# args = [hostpython, "setup.py", "install", "--prefix", dest_dir]
# shprint(*args, _env=build_env)
env = ' '.join(['{}="{}"'.format(k, v) for k, v in build_env.iteritems()])
cmd = ' '.join([env, self.ctx.hostpython, "setup.py", "install", "--prefix", dest_dir])
out = subprocess.check_output(cmd, shell=True)
print(out)
recipe = SixRecipe() I wonder what the usage of the sh library has to do with it. |
Yes. I stepped into the code with Interesting that the use of |
Setting
|
Adds netifaces recipe, closes #239
@rnixx and @Zen-CODE what exactly were the problems solved by 7cca790? With this commit I was unable to install netifaces. I had some setuptools troubles too which I solved with this. I am not quite happy with that solution either. Any suggestions?