Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Development
    • Development

    LinkedIn Launches Open-Source Python Plug-In for Gradle

    Written by

    Darryl K. Taft
    Published August 17, 2016
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      Currently on a spree of open-sourcing new developer technology, LinkedIn this week announced it is open sourcing {py}gradl—a set of Gradle plug-ins the company created for building Python libraries and applications.

      Gradle is a build automation tool that supports many programming languages. It coordinates the process of building software between multiple different code repositories and automates a number of important related tasks, like checking dependencies and warning programmers if something they have changed might break code written by someone else, explained Stephen Holsapple, a LinkedIn senior staff software engineer, in a blog post.

      Written in Java and Groovy, Gradle provides strong support for Java Virtual Machine (JVM) languages and is the build system of choice for a variety of projects. Gradle is the build tool for Android Studio. Also, the Eclipse IDE provides first-class Gradle support via its Buildship plug-ins, which enable developers to set up, configure, and initiate Gradle builds from Eclipse.

      Holsapple said Gradle core to LinkedIn’s multiproduct development strategy where the company employs a host of different languages to develop software.

      “At LinkedIn, we have an extreme polyglot programming environment, supporting more than 42 programming languages,” he said. “One of the most important languages we wanted to integrate with Gradle was Python, the language that we use to build the vast majority of our internal developer tools.”

      Holsapple noted that LinkedIn needed to get around the limitations of Python’s Setuptools package management system. For self-contained Python applications with a small set of external dependencies, Setuptools worked just fine, he said. But it could not hold up to the demands of LinkedIn’s fast-growing Python code base.

      However, LinkedIn did not want to abandon Setuptools, but rather to extend it. That’s where Gradle came in. Holsapple’s teams enhanced the Python package management system with a set of Gradle plug-ins to address the Setuptools shortcomings.

      “With a small amount of effort, we were able to wire in the Python package management ecosystem with LinkedIn’s rich Gradle build system, which we were already using with other languages to achieve continuous integration,” Holsapple said.

      According to Holsapple, there were three primary areas where Setuptools came up short for LinkedIn: dependency management, interfacing with existing metadata systems and handling polyglot builds. Polyglot build are build projects where multiple programming languages are used. “Such as when we have native C/C++ extension alongside our Python code, or a frontend written in Ember.js, or a build system that has dependencies on non-Python tooling,” Holsapple said.

      “As the size of our Python ecosystem grew, dependency management was the single most painful task that we dealt with on a day-to-day basis,” he said. However, “In using Gradle, we have adopted a powerful dependency and conflict resolution system, started emitting metadata about our dependencies, and begun powering entire suites of new tools that make our Python engineers more productive,” Holsapple noted.

      Meanwhile, for polyglot programming, Gradle helps by having a plug-in architecture. For each language or technology stack, LinkedIn simply needs to apply the build plug-in for the underlying language or technology stack, the company said.

      “Plug-ins can be developed that mix and match other plug-ins: to build a Python project that uses a native extension, one need only apply the C/C++ and Python plug-ins,” Holsapple said. “Afterwards, a first-class way of declaring a dependency between these stacks is possible, since Gradle uses a language-agnostic format to declare dependency information.”

      Moreover, for the sake of familiarity for developers, LinkedIn ensured that a {py}gradle project looks nearly identical to a Python project that uses Setuptools.

      Though just released to the community this week, LinkedIn’s {py}gradle code has been in production use for over a year, Holsapple said.

      “We hope that using Gradle to build your Python code will be as simple as using Setuptools directly, but will provide you with more robust dependency management and a quality method to integrate against your existing metadata systems, in addition to allowing you to explore building products composed of multiple languages,” he noted.

      Darryl K. Taft
      Darryl K. Taft
      Darryl K. Taft covers the development tools and developer-related issues beat from his office in Baltimore. He has more than 10 years of experience in the business and is always looking for the next scoop. Taft is a member of the Association for Computing Machinery (ACM) and was named 'one of the most active middleware reporters in the world' by The Middleware Co. He also has his own card in the 'Who's Who in Enterprise Java' deck.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.