Opened 11 years ago

Last modified 10 years ago

#38253 new request

new port 'python-pxattr' possible?

Reported by: mail@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager), petrrr
Port:

Description (last modified by raimue (Rainer Müller))

Hi there,

I tried to install bup (github.com/apenwarr/bup/), whose tests fail because 'python-xattr module is too old; install python-pyxattr instead.'

I only found these on macports:

> port search xattr|grep python
py-xattr @0.6.1 (python)
py24-xattr @0.6.1 (python)
py25-xattr @0.6.1 (python)
py26-xattr @0.6.1 (python)
py27-xattr @0.6.1 (python)

Is it possible to upgrade the py-xattr port to the newer version? Or to create an additional port fpr python-pyxattr?

Please dont ask me what exactly the difference is, if needed I could contact the bup authors what exactly needs to be done/included.

Thanks in advance,

Johannes

Change History (7)

comment:1 Changed 11 years ago by raimue (Rainer Müller)

Cc: arsptr@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to perry@…
Port: py-xattr py24-xattr py25-xattr py26-xattr added

Please remember to use WikiFormatting and add maintainers to CC.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Cc: arsptr@… removed
Owner: changed from perry@… to macports-tickets@…
Port: py-xattr py24-xattr py25-xattr py26-xattr py27-xattr removed
Summary: py-xattr: Upgrade / new port 'python-pxattr' possible?new port 'python-pxattr' possible?
Type: updaterequest
Version: 2.1.3

https://pypi.python.org/pypi/pyxattr is a different module to https://pypi.python.org/pypi/xattr and the latter is what is provided by the py-xattr port. (It's also outdated, but that would be a different ticket.)

comment:3 Changed 11 years ago by mail@…

Any news? Is it possible to add a new port for python-pyxattr?

Thanks, Johannes

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 11 years ago by mail@…

I created a portfile (or rather modified an existing one), and I get stuck here:

--->  Building py27-pyxattr
DEBUG: Executing proc-pre-org.macports.build-build-0
DEBUG: Executing org.macports.build (py27-pyxattr)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_Shared_macports_Lokales_Repository_python_py-pyxattr/py27-pyxattr/work/.CC_PRINT_OPTIONS' F90FLAGS='-m64' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJC='/usr/bin/clang' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_Shared_macports_Lokales_Repository_python_py-pyxattr/py27-pyxattr/work/pyxattr-0.5.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_Users_Shared_macports_Lokales_Repository_python_py-pyxattr/py27-pyxattr/work/pyxattr-0.5.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
running build
running build_ext
building 'xattr' extension
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -D_XATTR_VERSION="0.5.2" -D_XATTR_AUTHOR="Iustin Pop" -D_XATTR_EMAIL="iusty@k1024.org" -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c xattr.c -o build/temp.macosx-10.8-x86_64-2.7/xattr.o -Wall -Werror
xattr.c:25:10: fatal error: 'attr/xattr.h' file not found
#include <attr/xattr.h>
         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Command failed:  cd "/opt/local/var/macports/build/_Users_Shared_macports_Lokales_Repository_python_py-pyxattr/py27-pyxattr/work/pyxattr-0.5.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1
Error: org.macports.build for port py27-pyxattr returned: command execution failed

The developer, whom I asked for help, said the xattr.h should be installed by some devel-package on linux machines. Where to get it on OSX? Shouldn't it be somewhere in the xattr port?

Thanks, Johannes

comment:6 Changed 11 years ago by ned-deily (Ned Deily)

Does this package work on OS X? AFAIK, Linux extended attributes use a different API than OS X and BSD extended attributes. That's why, for example, the new standard library support for extended attributes in Python 3.3 is only supported on Linux at the moment: http://docs.python.org/3/library/os.html#linux-extended-attributes

comment:7 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

Note: See TracTickets for help on using tickets.